git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-arm
/
arch-cl7500
/
uncompress.h
diff --git
a/include/asm-arm/arch-cl7500/uncompress.h
b/include/asm-arm/arch-cl7500/uncompress.h
index
c437e0c
..
68601b3
100644
(file)
--- a/
include/asm-arm/arch-cl7500/uncompress.h
+++ b/
include/asm-arm/arch-cl7500/uncompress.h
@@
-3,19
+3,27
@@
*
* Copyright (C) 1999, 2000 Nexus Electronics Ltd.
*/
*
* Copyright (C) 1999, 2000 Nexus Electronics Ltd.
*/
+
#define BASE 0x03010000
#define SERBASE (BASE + (0x2f8 << 2))
#define BASE 0x03010000
#define SERBASE (BASE + (0x2f8 << 2))
-static
inline
void putc(char c)
+static
__inline__
void putc(char c)
{
{
- while (!(*((volatile unsigned int *)(SERBASE + 0x14)) & 0x20))
- barrier();
-
+ while (!(*((volatile unsigned int *)(SERBASE + 0x14)) & 0x20));
*((volatile unsigned int *)(SERBASE)) = c;
}
*((volatile unsigned int *)(SERBASE)) = c;
}
-static inline void flush(void)
+/*
+ * This does not append a newline
+ */
+static void putstr(const char *s)
{
{
+ while (*s) {
+ putc(*s);
+ if (*s == '\n')
+ putc('\r');
+ s++;
+ }
}
static __inline__ void arch_decomp_setup(void)
}
static __inline__ void arch_decomp_setup(void)