Rev 1658 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1658 | Rev 1780 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | static waitq_t can_start; |
45 | static waitq_t can_start; |
46 | 46 | ||
47 | static void testit1(void *data) |
47 | static void testit1(void *data) |
48 | { |
48 | { |
49 | int i; |
49 | int i; |
50 | int arg __attribute__((aligned(16))) = (int)((__native) data); |
50 | int arg __attribute__((aligned(16))) = (int)((unative_t) data); |
51 | int after_arg __attribute__((aligned(16))); |
51 | int after_arg __attribute__((aligned(16))); |
52 | 52 | ||
53 | thread_detach(THREAD); |
53 | thread_detach(THREAD); |
54 | 54 | ||
55 | waitq_sleep(&can_start); |
55 | waitq_sleep(&can_start); |
Line 75... | Line 75... | ||
75 | } |
75 | } |
76 | 76 | ||
77 | static void testit2(void *data) |
77 | static void testit2(void *data) |
78 | { |
78 | { |
79 | int i; |
79 | int i; |
80 | int arg __attribute__((aligned(16))) = (int)((__native) data); |
80 | int arg __attribute__((aligned(16))) = (int)((unative_t) data); |
81 | int after_arg __attribute__((aligned(16))); |
81 | int after_arg __attribute__((aligned(16))); |
82 | 82 | ||
83 | thread_detach(THREAD); |
83 | thread_detach(THREAD); |
84 | 84 | ||
85 | waitq_sleep(&can_start); |
85 | waitq_sleep(&can_start); |
Line 114... | Line 114... | ||
114 | 114 | ||
115 | printf("SSE test #1\n"); |
115 | printf("SSE test #1\n"); |
116 | printf("Creating %d threads... ", THREADS); |
116 | printf("Creating %d threads... ", THREADS); |
117 | 117 | ||
118 | for (i=0; i<THREADS/2; i++) { |
118 | for (i=0; i<THREADS/2; i++) { |
119 | if (!(t = thread_create(testit1, (void *)((__native)i*2), TASK, 0, "testit1"))) |
119 | if (!(t = thread_create(testit1, (void *)((unative_t)i*2), TASK, 0, "testit1"))) |
120 | panic("could not create thread\n"); |
120 | panic("could not create thread\n"); |
121 | thread_ready(t); |
121 | thread_ready(t); |
122 | if (!(t = thread_create(testit2, (void *)((__native)i*2+1), TASK, 0, "testit2"))) |
122 | if (!(t = thread_create(testit2, (void *)((unative_t)i*2+1), TASK, 0, "testit2"))) |
123 | panic("could not create thread\n"); |
123 | panic("could not create thread\n"); |
124 | thread_ready(t); |
124 | thread_ready(t); |
125 | } |
125 | } |
126 | 126 | ||
127 | printf("ok\n"); |
127 | printf("ok\n"); |