Rev 1787 | Rev 2027 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1787 | Rev 2020 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | #include <time/delay.h> |
36 | #include <time/delay.h> |
| 37 | 37 | ||
| 38 | #include <arch.h> |
38 | #include <arch.h> |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | void test(void) |
41 | void test_mips1(void) |
| 42 | { |
42 | { |
| - | 43 | #ifdef mips32 |
|
| 43 | printf("MIPS debug test #1\n"); |
44 | printf("MIPS debug test #1\n"); |
| 44 | 45 | ||
| 45 | printf("You should enter kconsole debug mode now.\n"); |
46 | printf("You should enter kconsole debug mode now.\n"); |
| 46 | 47 | ||
| 47 | asm __volatile__ ("break"); |
48 | asm __volatile__ ("break"); |
| 48 | 49 | ||
| 49 | printf("Test passed.\n"); |
50 | printf("Test passed.\n"); |
| - | 51 | #else |
|
| - | 52 | printf("This test is availaible only on MIPS32 platform.\n"); |
|
| - | 53 | #endif |
|
| 50 | } |
54 | } |