X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=dafd7cb92aa790e645aab58a376eeeafd0d4e214;hb=c45e4cce0b0aa72809f868441979e122b6ad97d5;hp=414f2115f5213dc28dd49577ea0798f4e2c8a983;hpb=0eeba5822b3ff0e76ae0fd0272536d371d272d7d;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 414f2115..dafd7cb9 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -38,6 +38,8 @@ #include #include +#include + #include #include @@ -66,8 +68,8 @@ static void proc_test2(void) } } -static cpustack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)]; -static cpustack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpustack_t)]; +static cpu_stack_t proc_test1_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; +static cpu_stack_t proc_test2_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; /** @@ -83,12 +85,12 @@ int proc_testRun(void) { kputs("> main\n"); timer_delay(93); + monitor_report(); proc_yield(); } return 0; } -#ifdef _TEST int proc_testSetup(void) { @@ -109,24 +111,4 @@ int proc_testTearDown(void) return 0; } -#include -#include -#include -#include -#include -#if CONFIG_KERN_PREEMPT - #include - #include -#else - #include - // FIXME: we need to link with the switch asm code too! -#endif -#include -#include -#include -#include -#include - TEST_MAIN(proc); - -#endif // _TEST