Skip to content

Commit

Permalink
[ARM] Move ice-dcc code into misc.c
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Mar 28, 2006
1 parent a081568 commit de4533a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
4 changes: 0 additions & 4 deletions arch/arm/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ ifeq ($(CONFIG_ARCH_AT91RM9200),y)
OBJS += head-at91rm9200.o
endif

ifeq ($(CONFIG_DEBUG_ICEDCC),y)
OBJS += ice-dcc.o
endif

ifeq ($(CONFIG_CPU_BIG_ENDIAN),y)
OBJS += big-endian.o
endif
Expand Down
17 changes: 0 additions & 17 deletions arch/arm/boot/compressed/ice-dcc.S

This file was deleted.

15 changes: 14 additions & 1 deletion arch/arm/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ static void putstr(const char *ptr);
#include <asm/arch/uncompress.h>

#ifdef CONFIG_DEBUG_ICEDCC
extern void icedcc_putc(int ch);
static void icedcc_putc(int ch)
{
int status, i = 0x4000000;

do {
if (--i < 0)
return;

asm("mrc p14, 0, %0, c0, c0, 0" : "=r" (status));
} while (status & 2);

asm("mcr p15, 0, %0, c1, c0, 0" : : "r" (ch));
}

#define putc(ch) icedcc_putc(ch)
#define flush() do { } while (0)
#endif
Expand Down

0 comments on commit de4533a

Please sign in to comment.