summaryrefslogtreecommitdiffstats
path: root/src/sys/init/init_main.C
blob: e2447bc3f2a7be7d35fc4958808c3b9c244851e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <kernel/console.H>  // TODO : Remove this.
#include <sys/syscall.h>     // TODO : Remove this.

void init_main(void* unused)
{
    printk("Starting init!\n");

    while(1)
    {
	_syscall0(Systemcalls::TASK_YIELD);
	for (volatile int i = 0 ; i < 100000; i++);
    }
}
OpenPOWER on IntegriCloud