mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
- 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)
31 lines
519 B
C
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();
|
|
}
|
|
|