mirror of
https://github.com/drasko/codezero.git
synced 2026-03-01 02:03:29 +01:00
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.
This commit is contained in:
@@ -3,28 +3,20 @@
|
||||
*
|
||||
* Copyright (C) 2007-2009 Bahadir Balban
|
||||
*/
|
||||
|
||||
#include <shpage.h>
|
||||
#include <posix_init.h>
|
||||
|
||||
void posix_init(void)
|
||||
void posix_service_init(void)
|
||||
{
|
||||
/* Non-pager tasks initialise their shared communication page */
|
||||
if (self_tid() != PAGER_TID)
|
||||
shared_page_init();
|
||||
BUG_ON(self_tid() != VFS_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)
|
||||
void libposix_init(void)
|
||||
{
|
||||
posix_init();
|
||||
main();
|
||||
/* Shall only be run by posix applications */
|
||||
BUG_ON(self_tid() == PAGER_TID || self_tid() == VFS_TID);
|
||||
shared_page_init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user