adamdunkels | 0a08fda | 2004-07-04 18:33:07 +0000 | [diff] [blame^] | 1 | #include "mt.h" |
2 | |||||
3 | MTP(t, p, "Test thread"); | ||||
4 | /*--------------------------------------------------------------------------*/ | ||||
5 | static void | ||||
6 | test(void *data) | ||||
7 | { | ||||
8 | while(1) { | ||||
9 | asm("inc $d020"); | ||||
10 | } | ||||
11 | } | ||||
12 | /*--------------------------------------------------------------------------*/ | ||||
13 | LOADER_INIT_FUNC(mtest_init, arg) | ||||
14 | { | ||||
15 | arg_free(arg); | ||||
16 | mtp_start(&t, test, NULL); | ||||
17 | } | ||||
18 | /*--------------------------------------------------------------------------*/ |