2 * linux/arch/armnommu/mach-espd_4510b/head.S
4 * Copyright (C) 2003 Hyok S. Choi
5 * <hyok.choi@samsung.com>
7 * uClinux kernel startup code for s3c4510b
9 #include <linux/linkage.h>
10 #include <linux/init.h>
12 #include <asm/hardware.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 /* cache clean and flush
51 * cf. Ch-5 of S3C4510 user's manual for
52 * "Cache flush operation"
53 * To clear Tag RAM area.
63 /* cache/write buffer on */
64 ldr r0, =0x3FF0000 @ SYSCFG
67 orr r2, r2, #0x10 @ 0-Kbyte SRAM, 8-Kbyte cache
68 orr r2, r2, #6 @ Cache and write buffer
72 /* P0: LED, P2: ETH_MDDIS */
76 ldr r2, S3C4510B_PROCESSOR_TYPE
79 ldr r2, ESPD_4510B_MACH_TYPE
85 LC0: .long __bss_start
88 .long __machine_arch_type
89 .long init_thread_union+8192
91 S3C4510B_PROCESSOR_TYPE:
94 .long MACH_TYPE_ESPD_4510B
96 #include "../kernel/head-common.S"