Fixed various minor issues.

Tag setting before ipc via l4 libraries don't seem to work, whereas
c0 internally generated ipcs do it correctly.
This commit is contained in:
Bahadir Balban
2008-02-05 18:30:11 +00:00
parent 6b3d936933
commit 4f2e1d3e94
8 changed files with 20 additions and 37 deletions

View File

@@ -7,24 +7,15 @@
#define L4_IPC_TAG_MR_OFFSET 0
/* To synchronise two threads */
#define L4_IPC_TAG_WAIT 0
/* Pagefault */
#define L4_IPC_TAG_PFAULT 2
#define L4_IPC_TAG_PFAULT 0
#if defined (__KERNEL__) /* These are kernel internal calls */
/* A helper call for sys_ipc() or internally created ipc paths. */
#if defined (__KERNEL__)
/* These are for internally created ipc paths. */
int ipc_send(l4id_t to);
int ipc_sendrecv(l4id_t to, l4id_t from);
/*
* This version sends an extra wait ipc to its receiver so that
* the receiver can explicitly make it runnable later by accepting
* this wait ipc.
*/
int ipc_sendwait(l4id_t tid);
#endif
#endif /* __IPC_H__ */

View File

@@ -18,6 +18,8 @@
#define MAP_SVC_DEFAULT_FLAGS MAP_SVC_RW_FLAGS
#define MAP_IO_DEFAULT_FLAGS MAP_SVC_IO_FLAGS
#if defined (__KERNEL__)
int check_access(unsigned long vaddr, unsigned long size, unsigned int flags);
#endif
#endif /* __SPACE_H__ */