mirror of
https://github.com/drasko/codezero.git
synced 2026-01-27 10:13:15 +01:00
A shared space multi-threaded example application presenting the use of the
thread library. It also exemplifies how a new sample application can be added.
This commit is contained in:
21
conts/examples/example2/container.c
Normal file
21
conts/examples/example2/container.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Container entry point for pager
|
||||
*
|
||||
* Copyright (C) 2007-2009 B Labs Ltd.
|
||||
*/
|
||||
|
||||
#include <l4lib/init.h>
|
||||
#include <l4lib/utcb.h>
|
||||
|
||||
|
||||
extern void main(void);
|
||||
|
||||
void __container_init(void)
|
||||
{
|
||||
/* Generic L4 initialisation */
|
||||
__l4_init();
|
||||
|
||||
/* Entry to main */
|
||||
main();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user