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