Linux-2.6.12-rc2
[linux-3.10.git] / arch / arm / boot / compressed / head-l7200.S
1 /* 
2  * linux/arch/arm/boot/compressed/head-l7200.S
3  * 
4  * Copyright (C) 2000 Steve Hill <sjhill@cotw.com>
5  * 
6  * Some code borrowed from Nicolas Pitre's 'head-sa1100.S' file. This
7  * is merged with head.S by the linker.
8  */
9
10 #include <linux/config.h>
11 #include <asm/mach-types.h>
12
13 #ifndef CONFIG_ARCH_L7200
14 #error What am I doing here...
15 #endif
16
17                 .section        ".start", "ax"
18
19 __L7200_start:
20                 mov     r0, #0x00100000         @ FLASH address of initrd
21                 mov     r2, #0xf1000000         @ RAM address of initrd
22                 add     r3, r2, #0x00700000     @ Size of initrd 
23 1:
24                 ldmia   r0!, {r4, r5, r6, r7}
25                 stmia   r2!, {r4, r5, r6, r7}
26                 cmp     r2, r3
27                 ble     1b
28
29                 mov     r8, #0                  @ Zero it out
30                 mov     r7, #MACH_TYPE_L7200    @ Set architecture ID