Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372120
b: refs/heads/master
c: 3b4af9b
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Russell King committed Mar 15, 2013
1 parent b64dbfe commit 4a7d57d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 615967b00fecc9e636dc59bf1ee322274f7dd041
refs/heads/master: 3b4af9bc24472a9411837ad0794312028df1fbd9
6 changes: 6 additions & 0 deletions trunk/arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,12 @@ config DEBUG_LL_INCLUDE
default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
default "mach/debug-macro.S"

config DEBUG_UNCOMPRESS
bool
default y if ARCH_MULTIPLATFORM && DEBUG_LL && \
!DEBUG_OMAP2PLUS_UART && \
!DEBUG_TEGRA_UART

config UNCOMPRESS_INCLUDE
string
default "debug/uncompress.h" if ARCH_MULTIPLATFORM
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ endif
AFLAGS_head.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
HEAD = head.o
OBJS += misc.o decompress.o
ifeq ($(CONFIG_DEBUG_UNCOMPRESS),y)
OBJS += debug.o
endif
FONTC = $(srctree)/drivers/video/console/font_acorn_8x8.c

# string library code (-Os is enforced to keep it much smaller)
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/boot/compressed/debug.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <linux/linkage.h>
#include <asm/assembler.h>

#include CONFIG_DEBUG_LL_INCLUDE

ENTRY(putc)
addruart r1, r2, r3
waituart r3, r1
senduart r0, r1
busyuart r3, r1
mov pc, lr
ENDPROC(putc)
4 changes: 4 additions & 0 deletions trunk/arch/arm/include/debug/uncompress.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef CONFIG_DEBUG_UNCOMPRESS
extern void putc(int c);
#else
static inline void putc(int c) {}
#endif
static inline void flush(void) {}
static inline void arch_decomp_setup(void) {}

0 comments on commit 4a7d57d

Please sign in to comment.