Files
codezero/tasks/libposix/init.c
Bahadir Balban 54a9b2901d Removed allocation of utcb shared pages by mm0 completely.
- Now libl4 has no references to utcb page or shmat etc.
- Pager does not deal with special case utcb page allocation.
  It instead allocates a shared page from shm memory pool.
- All tasks working to original standard.

Next:
- Add per-thread utcb allocation from the kernel
- Add larger register file for standard ipc
- Add long ipc (up to 1Kb)
2009-04-22 14:48:43 +03:00

31 lines
519 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_init(void)
{
/* Non-pager tasks initialise their shared communication page */
if (self_tid() != PAGER_TID)
shared_page_init();
}
int main(void);
/*
* Entry point for posix services container.
*
* This is executed by all posix system services and tasks
* that run in this container.
*/
void __container_init(void)
{
posix_init();
main();
}