git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing Tegra2 build
[tpg/acess2.git]
/
Kernel
/
arch
/
armv7
/
debug.c
diff --git
a/Kernel/arch/armv7/debug.c
b/Kernel/arch/armv7/debug.c
index
d75048e
..
7b9e55d
100644
(file)
--- a/
Kernel/arch/armv7/debug.c
+++ b/
Kernel/arch/armv7/debug.c
@@
-23,8
+23,14
@@
void StartupPrint(const char *str);
// === CODE ===
void Debug_PutCharDebug(char ch)
{
// === CODE ===
void Debug_PutCharDebug(char ch)
{
-// while( *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_FLAG) & SERIAL_FLAG_FULL )
+ if(ch == '\n')
+ Debug_PutCharDebug('\r');
+
+ #if PLATFORM_is_tegra2
+ // Tegra2
+ while( !(*(volatile Uint32*)(UART0_BASE + 0x14) & (1 << 5)) )
;
;
+ #endif
// *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_DATA) = ch;
*(volatile Uint32*)(UART0_BASE) = ch;
// *(volatile Uint32*)(SERIAL_BASE + SERIAL_REG_DATA) = ch;
*(volatile Uint32*)(UART0_BASE) = ch;
UCC
git Repository :: git.ucc.asn.au