sh: kexec: Drop SR.BL bit toggling.

For the time being, this creates far more problems than it solves,
evident by the second local_irq_disable(). Kill all of this off
and rely on IRQ disabling to protect against the VBR reload.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt 2009-03-18 19:06:15 +09:00
parent b7cf6ddc13
commit a6bab7b5c1
1 changed files with 3 additions and 4 deletions

View File

@ -113,20 +113,19 @@ void machine_kexec(struct kimage *image)
kexec_info(image); kexec_info(image);
flush_cache_all(); flush_cache_all();
set_bl_bit();
#if defined(CONFIG_SH_STANDARD_BIOS) #if defined(CONFIG_SH_STANDARD_BIOS)
asm volatile("ldc %0, vbr" : asm volatile("ldc %0, vbr" :
: "r" (((unsigned long) gdb_vbr_vector) - 0x100) : "r" (((unsigned long) gdb_vbr_vector) - 0x100)
: "memory"); : "memory");
#endif #endif
/* now call it */ /* now call it */
rnk = (relocate_new_kernel_t) reboot_code_buffer; rnk = (relocate_new_kernel_t) reboot_code_buffer;
(*rnk)(page_list, reboot_code_buffer, image->start); (*rnk)(page_list, reboot_code_buffer, image->start);
#ifdef CONFIG_KEXEC_JUMP #ifdef CONFIG_KEXEC_JUMP
asm volatile("ldc %0, vbr" : : "r" (&vbr_base) : "memory"); asm volatile("ldc %0, vbr" : : "r" (&vbr_base) : "memory");
local_irq_disable();
clear_bl_bit();
if (image->preserve_context) if (image->preserve_context)
restore_processor_state(); restore_processor_state();