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)
27 Debug_PutCharDebug('\r');
29 #if PLATFORM_is_tegra2
31 while( !(*(volatile Uint32*)(UART0_BASE + 0x14) & (1 << 5)) )
35 // *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_DATA) = ch;
36 *(volatile Uint32*)(UART0_BASE) = ch;
39 void Debug_PutStringDebug(const char *str)
42 Debug_PutCharDebug( *str );
45 void KernelPanic_SetMode(void)
49 void KernelPanic_PutChar(char ch)
51 // Debug_PutCharDebug(ch);
54 void StartupPrint(const char *str)