blob: 8be5ae6c38e419242fe07ed3515608f452b2a837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <kernel/console.H> // TODO : Remove this.
#include <sys/task.h>
void init_child(void* unused)
{
printk("Here I am %d\n", task_gettid());
task_end();
}
void init_main(void* unused)
{
printk("Starting init!\n");
while(1)
{
int t = task_create(&init_child, NULL);
printk("Created child %d\n", t);
for (volatile int i = 0 ; i < 10000000; i++);
}
}
|