Moved ipc flags manipulation to ipc.h glue file

This commit is contained in:
Bahadir Balban
2009-05-28 13:02:37 +03:00
parent ba31e1b823
commit e61e9e9533
4 changed files with 57 additions and 49 deletions

View File

@@ -14,6 +14,7 @@
#include <l4/generic/kmalloc.h>
#include INC_API(syscall.h)
#include INC_GLUE(message.h)
#include INC_GLUE(ipc.h)
/*
* ipc syscall uses an ipc_type variable and send/recv
@@ -63,19 +64,6 @@ int ipc_full_copy(struct ktcb *to, struct ktcb *from)
return 0;
}
static inline int extended_ipc_msg_index(unsigned int flags)
{
return (flags & IPC_FLAGS_MSG_INDEX_MASK)
>> IPC_FLAGS_MSG_INDEX_SHIFT;
}
static inline int extended_ipc_msg_size(unsigned int flags)
{
return (flags & IPC_FLAGS_SIZE_MASK)
>> IPC_FLAGS_SIZE_SHIFT;
}
/*
* Extended copy is asymmetric in that the copying always occurs from
* the sender's kernel stack to receivers userspace buffers.