Files
codezero/tasks/libposix/init.c
Bahadir Balban 7a81db8782 Ongoing work for adding per-thread UTCB structures.
Added setting of utcb address to l4_thread_control.
This is going to be moved to exchange_registers() since we need to pass
both the utcb physical and virtual address and exregs fits such context
modification better than thread_control.
2009-04-29 16:53:04 +03:00

23 lines
465 B
C

/*
* Main entry point for posix services and applications.
*
* Copyright (C) 2007-2009 Bahadir Balban
*/
#include <shpage.h>
#include <posix_init.h>
void posix_service_init(void)
{
/* Non-pager tasks initialise their shared communication page */
BUG_ON(self_tid() != VFS_TID);
shared_page_init();
}
void libposix_init(void)
{
/* Shall only be run by posix applications */
BUG_ON(self_tid() == PAGER_TID || self_tid() == VFS_TID);
shared_page_init();
}