2 ** Copyright 2004, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
8 #include <sys/syscalls.h>
10 static int fpu_test_thread(void *arg
)
12 thread_id tid
= _kern_get_current_thread_id();
16 printf("starting thread %d\n", tid
);
21 if(foo
!= (double)tid
)
22 printf("error: foo %f, should be %f\n", foo
, (double)tid
);
33 thread_id tid
= _kern_thread_create_thread("fpu tester", &fpu_test_thread
, 0);
34 _kern_thread_set_priority(tid
, 1);
35 _kern_thread_resume_thread(tid
);
38 printf("finished creating threads, waiting forever\n");