diff options
Diffstat (limited to 'arch/arm/boot/compressed/head-l7200.S')
-rw-r--r-- | arch/arm/boot/compressed/head-l7200.S | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/head-l7200.S b/arch/arm/boot/compressed/head-l7200.S new file mode 100644 index 00000000000..b08bd23f8d1 --- /dev/null +++ b/arch/arm/boot/compressed/head-l7200.S | |||
@@ -0,0 +1,30 @@ | |||
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 | ||