2 * linux/arch/arm/mach-s3c3410/head.S
4 * Copyright (C) 2003 Hyok S. Choi
5 * <hyok.choi@samsung.com>
7 * uClinux kernel startup code for s3c3410
8 * which has no proper bootloader for linux startup
10 #include <linux/linkage.h>
11 #include <linux/init.h>
13 #include <asm/assembler.h>
14 #include <asm/mach-types.h>
15 #include <asm/procinfo.h>
16 #include <asm/ptrace.h>
17 #include <asm/mach/arch.h>
19 #define MACHINFO_TYPE 0
20 #define MACHINFO_PHYSRAM 4
21 #define MACHINFO_PHYSIO 8
22 #define MACHINFO_PGOFFIO 12
23 #define MACHINFO_NAME 16
26 * Kernel startup entry point.
29 .type stext, #function
32 mov r0, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ make sure svc mode
33 msr cpsr_c, r0 @ and all irqs disabled
36 ldmia r5, {r5, r6, r8, r9, sp} @ Setup stack
38 /* Copy data sections to their new home. */
47 /* Pretend we know what our processor code is (for arm_id) */
49 ldr r2, S3C3410_PROCESSOR_TYPE
52 ldr r2, S3C3410_MACH_TYPE
58 LC0: .long __bss_start
61 .long __machine_arch_type
62 .long init_thread_union+8192
64 S3C3410_PROCESSOR_TYPE:
67 .long MACH_TYPE_S3C3410
69 #include "../kernel/head-common.S"