2 * linux/arch/arm/mach-p2001/head.S
4 * Copyright (C) 2004-2005 Tobias Lorenz
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Kernel startup code for P2001
12 #include <linux/linkage.h>
13 #include <linux/init.h>
15 #include <asm/assembler.h>
16 #include <asm/mach-types.h>
17 #include <asm/procinfo.h>
18 #include <asm/ptrace.h>
19 #include <asm/constants.h>
21 #define MACHINFO_TYPE 0
22 #define MACHINFO_PHYSRAM 4
23 #define MACHINFO_PHYSIO 8
24 #define MACHINFO_PGOFFIO 12
25 #define MACHINFO_NAME 16
28 * Kernel startup entry point.
29 * ---------------------------
31 * This is normally called from the decompressor code. The requirements
32 * are: MMU = off, D-cache = off, I-cache = dont care, r0 = 0,
35 * See linux/arch/arm/tools/mach-types for the complete list of machine
40 .type stext, #function
43 ldr r1, P2001_MACH_TYPE
46 mov r0, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ make sure svc mode
47 msr cpsr_c, r0 @ and all irqs disabled
48 ldr r9, P2001_PROCESSOR_TYPE
51 * Set the Control Register and Read the process ID.
56 * r0 = processor control register
59 * r12 = value of r0 when kernel was called (currently always zero)
62 ldmia r5, {r5, r6, r7, r8, sp} @ Setup stack
70 str r9, [r6] @ Save processor ID
71 str r1, [r8] @ Save machine type
75 LC0: .long __bss_start @ r5
76 .long processor_id @ r6
78 .long __machine_arch_type @ r8
79 .long init_thread_union+8192 @ sp
82 * arm_id/PROCESSOR_TYPE:
83 * 31:24: Implementer (ARM Ltd)
85 * 19:16: Architecture (4T)
86 * 15:4: Primary Part Number (0)
94 #include "../kernel/head-common.S"