Changes in kernel/test/fpu/sse1.c [cb01e1e:96b02eb9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/sse1.c
rcb01e1e r96b02eb9 48 48 { 49 49 int i; 50 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);50 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 51 51 int after_arg __attribute__((aligned(16))); 52 52 … … 79 79 { 80 80 int i; 81 int arg __attribute__((aligned(16))) = (int) (( unative_t) data);81 int arg __attribute__((aligned(16))) = (int) ((sysarg_t) data); 82 82 int after_arg __attribute__((aligned(16))); 83 83 … … 107 107 } 108 108 109 c har *test_sse1(void)109 const char *test_sse1(void) 110 110 { 111 unsigned int i, total = 0; 111 unsigned int i; 112 atomic_count_t total = 0; 112 113 113 114 waitq_initialize(&can_start); … … 120 121 thread_t *t; 121 122 122 if (!(t = thread_create(testit1, (void *) (( unative_t) 2 * i), TASK, 0, "testit1", false))) {123 if (!(t = thread_create(testit1, (void *) ((sysarg_t) 2 * i), TASK, 0, "testit1", false))) { 123 124 TPRINTF("could not create thread %u\n", 2 * i); 124 125 break; … … 127 128 total++; 128 129 129 if (!(t = thread_create(testit2, (void *) (( unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {130 if (!(t = thread_create(testit2, (void *) ((sysarg_t) 2 * i + 1), TASK, 0, "testit2", false))) { 130 131 TPRINTF("could not create thread %u\n", 2 * i + 1); 131 132 break; … … 140 141 waitq_wakeup(&can_start, WAKEUP_ALL); 141 142 142 while (atomic_get(&threads_ok) != (long)total) {143 TPRINTF("Threads left: % d\n", total - atomic_get(&threads_ok));143 while (atomic_get(&threads_ok) != total) { 144 TPRINTF("Threads left: %" PRIua "\n", total - atomic_get(&threads_ok)); 144 145 thread_sleep(1); 145 146 }
Note:
See TracChangeset
for help on using the changeset viewer.