mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
- Need to remove old versions - Need to merge the two. - Need to investigate occasional page fault on NMOP sequence. (resembles an error ipc_extended test) Could be related to new page cache read/write routines.
34 lines
601 B
C
34 lines
601 B
C
/*
|
|
* Container entry point for this task.
|
|
*
|
|
* Copyright (C) 2007-2009 Bahadir Bilgehan Balban
|
|
*/
|
|
|
|
#include <l4lib/types.h>
|
|
#include <l4lib/init.h>
|
|
#include <l4lib/utcb.h>
|
|
#include <posix_init.h> /* Initialisers for posix library */
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char *argv[]);
|
|
|
|
int __container_init(int argc, char **argv)
|
|
{
|
|
void *envp = &argv[argc + 1];
|
|
char *pagerval;
|
|
|
|
if ((char *)envp == *argv)
|
|
envp = &argv[argc];
|
|
|
|
__libposix_init(envp);
|
|
|
|
pagerval = getenv("pagerid");
|
|
|
|
/* Generic L4 thread initialisation */
|
|
__l4_init();
|
|
|
|
/* Entry to main */
|
|
return main(argc, argv);
|
|
}
|
|
|