mirror of
https://github.com/drasko/codezero.git
synced 2026-01-17 05:13:16 +01:00
Clarified a few confusing definitions in ipc.c
This commit is contained in:
@@ -39,10 +39,10 @@
|
||||
#define IPC_EXTENDED_MAX_SIZE L4_IPC_EXTENDED_MAX_SIZE
|
||||
|
||||
/*
|
||||
* ipc syscall uses an ipc_type variable and send/recv
|
||||
* ipc syscall uses an ipc_dir variable and send/recv
|
||||
* details are embedded in this variable.
|
||||
*/
|
||||
enum IPC_TYPE {
|
||||
enum IPC_DIR {
|
||||
IPC_INVALID = 0,
|
||||
IPC_SEND = 1,
|
||||
IPC_RECV = 2,
|
||||
|
||||
@@ -48,7 +48,7 @@ static inline l4id_t tid_to_cid(l4id_t tid)
|
||||
return (tid & TASK_CID_MASK) >> TASK_CID_SHIFT;
|
||||
}
|
||||
|
||||
static inline int task_id_special(l4id_t id)
|
||||
static inline int tid_special_value(l4id_t id)
|
||||
{
|
||||
/* Special ids have top 2 nibbles all set */
|
||||
return (id & TASK_CID_MASK) == TASK_CID_MASK;
|
||||
|
||||
Reference in New Issue
Block a user