X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc_test.c;h=a32d667e966edf9452013d596a5a693605527286;hb=ecc3d927e252b3fa278b5320f16364fc14d61220;hp=56f784d5b012f9e4b6f4ac48d385ee22c1856a05;hpb=45ad55306051d46d07a42672556a88c5d1c795cd;p=bertos.git diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 56f784d5..a32d667e 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -50,7 +50,7 @@ static void proc_test1(void) { kputs("> test1\n"); timer_delay(50); - proc_switch(); + proc_yield(); } } @@ -63,7 +63,6 @@ static void proc_test2(void) { kputs("> test2\n"); timer_delay(75); - proc_switch(); } } @@ -104,7 +103,7 @@ int proc_testRun(void) { kputs("> main\n"); timer_delay(93); - proc_switch(); + proc_yield(); } return 0; } @@ -117,6 +116,7 @@ int proc_testRun(void) * How can we fix this? */ #include TEST_ONLY(drv/kdebug.c) +#include TEST_ONLY(kern/coop.c) #include TEST_ONLY(kern/proc.c) #include TEST_ONLY(drv/timer.c) #include TEST_ONLY(mware/formatwr.c)