Files
codezero/tasks/test0/main.c
Bahadir Balban 4f2e1d3e94 Fixed various minor issues.
Tag setting before ipc via l4 libraries don't seem to work, whereas
c0 internally generated ipcs do it correctly.
2008-02-05 18:30:11 +00:00

40 lines
682 B
C

/*
* Some tests for posix syscalls.
*
* Copyright (C) 2007 Bahadir Balban
*/
#include <stdio.h>
#include <string.h>
#include <l4lib/arch/message.h>
#include <l4lib/arch/syslib.h>
#include <l4lib/kip.h>
#include <l4lib/utcb.h>
#include <l4lib/ipcdefs.h>
#include <tests.h>
#define __TASKNAME__ "test0"
void wait_pager(l4id_t partner)
{
printf("%s: Syncing with pager.\n", __TASKNAME__);
l4_send(partner, L4_IPC_TAG_WAIT);
printf("Pager synced with us.\n");
}
void main(void)
{
printf("\n%s: Started.\n", __TASKNAME__);
/* Sync with pager */
while (1)
wait_pager(0);
#if 0
/* Check mmap/munmap */
mmaptest();
/* Check shmget/shmat/shmdt */
shmtest();
#endif
}