Rev 2027 | Rev 2042 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2027 | Rev 2029 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #ifdef mips32 |
29 | #ifdef mips32 |
30 | 30 | ||
31 | #include <print.h> |
31 | #include <print.h> |
32 | #include <debug.h> |
32 | #include <debug.h> |
33 | #include <panic.h> |
- | |
34 | 33 | ||
35 | #include <test.h> |
34 | #include <test.h> |
36 | #include <atomic.h> |
35 | #include <atomic.h> |
37 | #include <proc/thread.h> |
36 | #include <proc/thread.h> |
38 | #include <time/delay.h> |
37 | #include <time/delay.h> |
Line 100... | Line 99... | ||
100 | "mfc1 %0,$1" |
99 | "mfc1 %0,$1" |
101 | : "=r" (after_arg) |
100 | : "=r" (after_arg) |
102 | ); |
101 | ); |
103 | 102 | ||
104 | if (arg != after_arg) { |
103 | if (arg != after_arg) { |
105 | panic("General reg tid%d: arg(%d) != %d\n", THREAD->tid, arg, after_arg); |
104 | printf("General reg tid%d: arg(%d) != %d\n", THREAD->tid, arg, after_arg); |
106 | atomic_inc(&threads_fault); |
105 | atomic_inc(&threads_fault); |
107 | break; |
106 | break; |
108 | } |
107 | } |
109 | } |
108 | } |
110 | atomic_inc(&threads_ok); |
109 | atomic_inc(&threads_ok); |