mirror of
https://github.com/drasko/codezero.git
synced 2026-03-15 16:51:49 +01:00
Added a shared memory test.
- libposix error printing now configurable via macro definition - shmget/at/dt tested.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <l4lib/ipcdefs.h>
|
||||
#include <unistd.h>
|
||||
#include <l4/macros.h>
|
||||
#include <libposix.h>
|
||||
|
||||
static inline void __attribute__ ((noreturn)) l4_exit(int status)
|
||||
{
|
||||
@@ -15,7 +16,7 @@ static inline void __attribute__ ((noreturn)) l4_exit(int status)
|
||||
ret = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_EXIT);
|
||||
|
||||
/* This call should not fail or return */
|
||||
printf("%s: L4 IPC returned: %d.\n", __FUNCTION__, ret);
|
||||
print_err("%s: L4 IPC returned: %d.\n", __FUNCTION__, ret);
|
||||
BUG();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user