PageRenderTime 34ms CodeModel.GetById 29ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/arm/boot/compressed/head-l7200.S

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
Assembly | 29 lines | 29 code | 0 blank | 0 comment | 0 complexity | 49edead03da66ca2e7331a919f7d62ee MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 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 <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 
221:
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