Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | ||
1da177e4 LT |
10 | #include <asm/mach-types.h> |
11 | ||
12 | #ifndef CONFIG_ARCH_L7200 | |
13 | #error What am I doing here... | |
14 | #endif | |
15 | ||
16 | .section ".start", "ax" | |
17 | ||
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 | |
22 | 1: | |
23 | ldmia r0!, {r4, r5, r6, r7} | |
24 | stmia r2!, {r4, r5, r6, r7} | |
25 | cmp r2, r3 | |
26 | ble 1b | |
27 | ||
28 | mov r8, #0 @ Zero it out | |
29 | mov r7, #MACH_TYPE_L7200 @ Set architecture ID |