3 * - By John Hodge (thePowersGang)
7 * NOTE: Currently designed for the realview-pb-a8 emulated by Qemu
12 //#define UART0_BASE 0x10009000
13 #define UART0_BASE 0xF1000000 // Boot time mapped
16 void KernelPanic_SetMode(void);
17 void KernelPanic_PutChar(char Ch);
18 void StartupPrint(const char *str);
21 int giDebug_SerialInitialised = 0;
24 void Debug_PutCharDebug(char ch)
26 // while( *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_FLAG) & SERIAL_FLAG_FULL )
29 // *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_DATA) = ch;
30 *(volatile Uint32*)(UART0_BASE) = ch;
33 void Debug_PutStringDebug(const char *str)
36 Debug_PutCharDebug( *str );
39 void KernelPanic_SetMode(void)
43 void KernelPanic_PutChar(char ch)
45 // Debug_PutCharDebug(ch);
48 void StartupPrint(const char *str)