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