diff options
Diffstat (limited to 'arch/arm/boot/compressed')
-rw-r--r-- | arch/arm/boot/compressed/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/boot/compressed/debug.S | 12 | ||||
-rw-r--r-- | arch/arm/boot/compressed/misc.c | 8 |
3 files changed, 16 insertions, 7 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index afed28e37ea5..3580d57ea218 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
@@ -24,6 +24,9 @@ endif | |||
24 | AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET) | 24 | AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET) |
25 | HEAD = head.o | 25 | HEAD = head.o |
26 | OBJS += misc.o decompress.o | 26 | OBJS += misc.o decompress.o |
27 | ifeq ($(CONFIG_DEBUG_UNCOMPRESS),y) | ||
28 | OBJS += debug.o | ||
29 | endif | ||
27 | FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c | 30 | FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c |
28 | 31 | ||
29 | # string library code (-Os is enforced to keep it much smaller) | 32 | # string library code (-Os is enforced to keep it much smaller) |
diff --git a/arch/arm/boot/compressed/debug.S b/arch/arm/boot/compressed/debug.S new file mode 100644 index 000000000000..6e8382d5b7a4 --- /dev/null +++ b/arch/arm/boot/compressed/debug.S | |||
@@ -0,0 +1,12 @@ | |||
1 | #include <linux/linkage.h> | ||
2 | #include <asm/assembler.h> | ||
3 | |||
4 | #include CONFIG_DEBUG_LL_INCLUDE | ||
5 | |||
6 | ENTRY(putc) | ||
7 | addruart r1, r2, r3 | ||
8 | waituart r3, r1 | ||
9 | senduart r0, r1 | ||
10 | busyuart r3, r1 | ||
11 | mov pc, lr | ||
12 | ENDPROC(putc) | ||
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index df899834d84e..31bd43b82095 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c | |||
@@ -25,13 +25,7 @@ unsigned int __machine_arch_type; | |||
25 | static void putstr(const char *ptr); | 25 | static void putstr(const char *ptr); |
26 | extern void error(char *x); | 26 | extern void error(char *x); |
27 | 27 | ||
28 | #ifdef CONFIG_ARCH_MULTIPLATFORM | 28 | #include CONFIG_UNCOMPRESS_INCLUDE |
29 | static inline void putc(int c) {} | ||
30 | static inline void flush(void) {} | ||
31 | static inline void arch_decomp_setup(void) {} | ||
32 | #else | ||
33 | #include <mach/uncompress.h> | ||
34 | #endif | ||
35 | 29 | ||
36 | #ifdef CONFIG_DEBUG_ICEDCC | 30 | #ifdef CONFIG_DEBUG_ICEDCC |
37 | 31 | ||