Linux 2.6.25.3
[linux/fpc-iii.git] / arch / arm / boot / compressed / head-l7200.S
blobd0e3b20856cd4657170b13f85d6111dee1ec5d65
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  */
10 #include <asm/mach-types.h>
12 #ifndef CONFIG_ARCH_L7200
13 #error What am I doing here...
14 #endif
16                 .section        ".start", "ax"
18 __L7200_start:
19                 mov     r0, #0x00100000         @ FLASH address of initrd
20                 mov     r2, #0xf1000000         @ RAM address of initrd
21                 add     r3, r2, #0x00700000     @ Size of initrd 
23                 ldmia   r0!, {r4, r5, r6, r7}
24                 stmia   r2!, {r4, r5, r6, r7}
25                 cmp     r2, r3
26                 ble     1b
28                 mov     r8, #0                  @ Zero it out
29                 mov     r7, #MACH_TYPE_L7200    @ Set architecture ID