libsel4: Unify ARM/IA32 IPC buffer functions.
Implements two trivial functions that were present for IA32, but not included in the corresponding ARM header. Closes SELFOUR-226
This commit is contained in:
parent
04106920c3
commit
7a78d03b37
1 changed files with 23 additions and 0 deletions
|
|
@ -69,12 +69,35 @@ seL4_GetBadge(int i)
|
|||
};
|
||||
}
|
||||
|
||||
static inline seL4_CPtr
|
||||
seL4_GetCap(int i)
|
||||
{
|
||||
return (seL4_CPtr)seL4_GetIPCBuffer()->caps_or_badges[i];
|
||||
}
|
||||
|
||||
static inline void
|
||||
seL4_SetCap(int i, seL4_CPtr cptr)
|
||||
{
|
||||
seL4_GetIPCBuffer()->caps_or_badges[i] = (seL4_Word)cptr;
|
||||
}
|
||||
|
||||
static inline void
|
||||
seL4_GetCapReceivePath(seL4_CPtr* receiveCNode, seL4_CPtr* receiveIndex, seL4_Word* receiveDepth)
|
||||
{
|
||||
seL4_IPCBuffer* ipcbuffer = seL4_GetIPCBuffer();
|
||||
if (receiveCNode != 0) {
|
||||
*receiveCNode = ipcbuffer->receiveCNode;
|
||||
}
|
||||
|
||||
if (receiveIndex != 0) {
|
||||
*receiveIndex = ipcbuffer->receiveIndex;
|
||||
}
|
||||
|
||||
if (receiveDepth != 0) {
|
||||
*receiveDepth = ipcbuffer->receiveDepth;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void
|
||||
seL4_SetCapReceivePath(seL4_CPtr receiveCNode, seL4_CPtr receiveIndex, seL4_Word receiveDepth)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue