1 2/* Bug ID 504092: writing to console line 2 crashes vmips */ 3 4#include "spimconsreg.h" 5#define IOBASE 0xa2000000 6 7.globl __start 8.ent __start 9__start: 10 /* Wait for console 2 to be ready */ 11 lw $2, IOBASE+DISPLAY_2_CONTROL 12 andi $2, $2, CTL_RDY 13 beq $2, $0, __start 14 15 /* Write an 'x' to it */ 16 li $2, 'x' 17 sw $2, IOBASE+DISPLAY_2_DATA 18 19 /* Halt. */ 20 break 21.end __start 22 23