3 #include <kern/monitor.h>
7 * Proc scheduling test subthread 1
9 static void NORETURN proc_test_thread1(void)
20 * Proc scheduling test subthread 2
22 static void NORETURN proc_test_thread2(void)
32 static cpustack_t proc_test_stack1[256];//CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)];
33 static cpustack_t proc_test_stack2[256];//CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)];
34 static cpustack_t monitor_stack[256];//CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)];
37 * Proc scheduling test
39 void NORETURN proc_test(void)
41 monitor_start(sizeof(monitor_stack), monitor_stack);
42 proc_new(proc_test_thread1, NULL, sizeof(proc_test_stack1), proc_test_stack1);
43 proc_new(proc_test_thread2, NULL, sizeof(proc_test_stack2), proc_test_stack2);
44 kputs("Created tasks\n");
48 kdump(proc_test_stack1+sizeof(proc_test_stack1)-64, 64);
51 kdump(proc_test_stack2+sizeof(proc_test_stack1)-64, 64);
55 kputs(">main task\n");