diff options
author | Magnus Damm <damm@opensource.se> | 2010-09-24 09:05:38 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-09-30 09:43:32 +0900 |
commit | 68a1aed7039e5a94a8e60e23fdf676738c36086a (patch) | |
tree | 493699f8b085269298c49569f104b3c43e80d242 /arch/sh/boot | |
parent | 4c62c595c2a23fb36a0b901b550115370047a137 (diff) | |
download | kernel_samsung_aries-68a1aed7039e5a94a8e60e23fdf676738c36086a.zip kernel_samsung_aries-68a1aed7039e5a94a8e60e23fdf676738c36086a.tar.gz kernel_samsung_aries-68a1aed7039e5a94a8e60e23fdf676738c36086a.tar.bz2 |
sh: boot kernel with SR.BL set
Update the SH kernel to keep SR.BL set until the VBR
register has been initialized. Useful to allow boot
of the kernel even though exceptions are pending.
Without this patch there is a window of time when
exceptions such as NMI are enabled but no exception
handlers are installed.
This patch modifies both the zImage loader and the
actual kernel to boot with BL=1, but the zImage
loader is modfied in such a way that the init_sr
value is unchanged to not break the zImage loader
provided by kexec.
Tested on sh7724 Ecovec and on the SH4AL-DSP core
included in sh7372.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot')
-rw-r--r-- | arch/sh/boot/compressed/head_32.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/boot/compressed/head_32.S b/arch/sh/boot/compressed/head_32.S index 200c1d4..3e15032 100644 --- a/arch/sh/boot/compressed/head_32.S +++ b/arch/sh/boot/compressed/head_32.S @@ -91,7 +91,9 @@ bss_start_addr: end_addr: .long _end init_sr: - .long 0x400000F0 /* Privileged mode, Bank=0, Block=0, IMASK=0xF */ + .long 0x500000F0 /* Privileged mode, Bank=0, Block=1, IMASK=0xF */ +kexec_magic: + .long 0x400000F0 /* magic used by kexec to parse zImage format */ init_stack_addr: .long stack_start decompress_kernel_addr: |