Changeset 8a72a9a in mainline for kernel/test/fpu/mips2.c
- Timestamp:
- 2009-02-12T20:02:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f81ceb7
- Parents:
- fe33ac2e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/mips2.c
rfe33ac2e r8a72a9a 27 27 */ 28 28 29 #ifdef mips3230 31 29 #include <print.h> 32 30 #include <debug.h> … … 39 37 #include <arch.h> 40 38 41 #define THREADS 42 #define DELAY 43 #define ATTEMPTS 39 #define THREADS 50 40 #define DELAY 10000L 41 #define ATTEMPTS 5 44 42 45 43 static atomic_t threads_ok; … … 57 55 58 56 waitq_sleep(&can_start); 59 57 60 58 for (i = 0; i < ATTEMPTS; i++) { 61 59 asm volatile ( … … 90 88 91 89 waitq_sleep(&can_start); 92 90 93 91 for (i = 0; i < ATTEMPTS; i++) { 94 92 asm volatile ( … … 96 94 : "=r" (arg) 97 95 ); 98 96 99 97 scheduler(); 100 98 asm volatile ( … … 125 123 if (!quiet) 126 124 printf("Creating %u threads... ", 2 * THREADS); 127 125 128 126 for (i = 0; i < THREADS; i++) { 129 127 thread_t *t; … … 163 161 return "Test failed"; 164 162 } 165 166 #endif
Note:
See TracChangeset
for help on using the changeset viewer.