Changeset 34db7fa in mainline for kernel/test/debug/mips1.c
- Timestamp:
- 2006-12-12T12:32:02Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 96348adc
- Parents:
- df496c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/debug/mips1.c
rdf496c5 r34db7fa 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 #ifdef mips32 28 30 29 31 #include <print.h> … … 38 40 #include <arch.h> 39 41 42 char * test_mips1(void) 43 { 44 printf("You should enter kconsole debug mode now.\n"); 45 46 asm volatile ( 47 "break\n" 48 ); 49 50 return "Back from debug mode"; 51 } 40 52 41 void test_mips1(void)42 {43 #ifdef mips3244 printf("MIPS debug test #1\n");45 46 printf("You should enter kconsole debug mode now.\n");47 48 asm __volatile__ ("break");49 50 printf("Test passed.\n");51 #else52 printf("This test is availaible only on MIPS32 platform.\n");53 53 #endif 54 }
Note:
See TracChangeset
for help on using the changeset viewer.