Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-arm/arch-shark/uncompress.h |
| 3 | * by Alexander Schulz |
| 4 | * |
| 5 | * derived from: |
| 6 | * linux/include/asm-arm/arch-ebsa285/uncompress.h |
| 7 | * Copyright (C) 1996,1997,1998 Russell King |
| 8 | */ |
| 9 | |
| 10 | #define SERIAL_BASE ((volatile unsigned char *)0x400003f8) |
| 11 | |
Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 12 | static inline void putc(int c) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | { |
| 14 | int t; |
| 15 | |
| 16 | SERIAL_BASE[0] = c; |
| 17 | t=0x10000; |
| 18 | while (t--); |
| 19 | } |
| 20 | |
Russell King | a081568 | 2006-03-28 10:24:33 +0100 | [diff] [blame] | 21 | static inline void flush(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | #ifdef DEBUG |
| 26 | static void putn(unsigned long z) |
| 27 | { |
| 28 | int i; |
| 29 | char x; |
| 30 | |
| 31 | putc('0'); |
| 32 | putc('x'); |
| 33 | for (i=0;i<8;i++) { |
| 34 | x='0'+((z>>((7-i)*4))&0xf); |
| 35 | if (x>'9') x=x-'0'+'A'-10; |
| 36 | putc(x); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | static void putr() |
| 41 | { |
| 42 | putc('\n'); |
| 43 | putc('\r'); |
| 44 | } |
| 45 | #endif |
| 46 | |
| 47 | /* |
| 48 | * nothing to do |
| 49 | */ |
| 50 | #define arch_decomp_setup() |
| 51 | #define arch_decomp_wdog() |