mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 04:13:16 +01:00
Updated ipc flag names with kernel-only versions without the L4 prefix.
This commit is contained in:
@@ -148,12 +148,12 @@ static inline unsigned int tcb_get_ipc_flags(struct ktcb *task)
|
||||
static inline void tcb_set_ipc_type(struct ktcb *task,
|
||||
unsigned int type)
|
||||
{
|
||||
task->ipc_flags = type & L4_IPC_FLAGS_TYPE_MASK;
|
||||
task->ipc_flags = type & IPC_FLAGS_TYPE_MASK;
|
||||
}
|
||||
|
||||
static inline unsigned int tcb_get_ipc_type(struct ktcb *task)
|
||||
{
|
||||
return task->ipc_flags & L4_IPC_FLAGS_TYPE_MASK;
|
||||
return task->ipc_flags & IPC_FLAGS_TYPE_MASK;
|
||||
}
|
||||
|
||||
#define THREAD_IDS_MAX 1024
|
||||
|
||||
@@ -89,10 +89,20 @@
|
||||
#if defined (__KERNEL__)
|
||||
|
||||
/* Kernel-only flags */
|
||||
#define L4_IPC_FLAGS_ERROR_MASK 0xF0000000
|
||||
#define L4_IPC_FLAGS_ERROR_SHIFT 28
|
||||
#define L4_IPC_EFAULT (1 << 28)
|
||||
#define L4_IPC_ENOIPC (1 << 29)
|
||||
#define IPC_FLAGS_SHORT L4_IPC_FLAGS_SHORT
|
||||
#define IPC_FLAGS_FULL L4_IPC_FLAGS_FULL
|
||||
#define IPC_FLAGS_EXTENDED L4_IPC_FLAGS_EXTENDED
|
||||
#define IPC_FLAGS_MSG_INDEX_MASK L4_IPC_FLAGS_MSG_INDEX_MASK
|
||||
#define IPC_FLAGS_TYPE_MASK L4_IPC_FLAGS_TYPE_MASK
|
||||
#define IPC_FLAGS_SIZE_MASK L4_IPC_FLAGS_SIZE_MASK
|
||||
#define IPC_FLAGS_SIZE_SHIFT L4_IPC_FLAGS_SIZE_SHIFT
|
||||
#define IPC_FLAGS_MSG_INDEX_SHIFT L4_IPC_FLAGS_MSG_INDEX_SHIFT
|
||||
#define IPC_FLAGS_ERROR_MASK 0xF0000000
|
||||
#define IPC_FLAGS_ERROR_SHIFT 28
|
||||
#define IPC_EFAULT (1 << 28)
|
||||
#define IPC_ENOIPC (1 << 29)
|
||||
|
||||
#define IPC_EXTENDED_MAX_SIZE (SZ_1K*2)
|
||||
|
||||
struct utcb {
|
||||
u32 mr[MR_TOTAL]; /* MRs that are mapped to real registers */
|
||||
|
||||
Reference in New Issue
Block a user