1 /* $Id: head.S,v 1.7 2003/09/01 17:58:19 lethal Exp $
3 * arch/sh/kernel/head.S
5 * Copyright (C) 1999, 2000 Niibe Yutaka & Kaz Kojima
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
11 * Head.S contains the SH exception handlers and startup code.
13 #include <linux/linkage.h>
15 .section .empty_zero_page, "aw"
16 ENTRY(empty_zero_page)
17 .long 1 /* MOUNT_ROOT_RDONLY */
18 .long 0 /* RAMDISK_FLAGS */
19 .long 0x0200 /* ORIG_ROOT_DEV */
20 .long 1 /* LOADER_TYPE */
21 .long 0x00360000 /* INITRD_START */
22 .long 0x000a0000 /* INITRD_SIZE */
28 * Condition at the entry of _stext:
30 * BSC has already been initialized.
31 * INTC may or may not be initialized.
32 * VBR may or may not be initialized.
33 * MMU may or may not be initialized.
34 * Cache may or may not be initialized.
35 * Hardware (including on-chip modules) may or may not be initialized.
39 ! Initialize Status Register
40 mov.l 1f, r0 ! MD=1, RB=0, BL=0, IMASK=0xF
42 ! Initialize global interrupt mask
47 mov r0, r15 ! Set initial r15 (stack pointer)
51 ldc r0, r7_bank ! ... and initial thread_info
53 ! Additional CPU initialization
63 bf/s 9b ! while (r1 < r2)
71 1: .long 0x400080F0 ! MD=1, RB=0, BL=0, FD=1, IMASK=0xF