ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-ebsa110 / uncompress.h
1 /*
2  *  linux/include/asm-arm/arch-ebsa110/uncompress.h
3  *
4  *  Copyright (C) 1996,1997,1998 Russell King
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 /*
12  * This does not append a newline
13  */
14 static void puts(const char *s)
15 {
16         __asm__ __volatile__("
17         ldrb    %0, [%2], #1
18         teq     %0, #0
19         beq     3f
20 1:      strb    %0, [%3]
21 2:      ldrb    %1, [%3, #0x14]
22         and     %1, %1, #0x60
23         teq     %1, #0x60
24         bne     2b
25         teq     %0, #'\n'
26         moveq   %0, #'\r'
27         beq     1b
28         ldrb    %0, [%2], #1
29         teq     %0, #0
30         bne     1b
31 3:      ldrb    %1, [%3, #0x14]
32         and     %1, %1, #0x60
33         teq     %1, #0x60
34         bne     3b
35         " : : "r" (0), "r" (0), "r" (s), "r" (0xf0000be0) : "cc");
36 }
37
38 /*
39  * nothing to do
40  */
41 #define arch_decomp_setup()
42 #define arch_decomp_wdog()