Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133346
b: refs/heads/master
c: a6bab7b
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Mar 18, 2009
1 parent 5739099 commit 9b603d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7cf6ddc13186f9272438a97aa75972d496d0b0a
refs/heads/master: a6bab7b5c18501e4dd3201ae8ac1dc6da5f07acc
7 changes: 3 additions & 4 deletions trunk/arch/sh/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,22 @@ void machine_kexec(struct kimage *image)
memcpy((void *)reboot_code_buffer, relocate_new_kernel,
relocate_new_kernel_size);

kexec_info(image);
kexec_info(image);
flush_cache_all();

set_bl_bit();
#if defined(CONFIG_SH_STANDARD_BIOS)
asm volatile("ldc %0, vbr" :
: "r" (((unsigned long) gdb_vbr_vector) - 0x100)
: "memory");
#endif

/* now call it */
rnk = (relocate_new_kernel_t) reboot_code_buffer;
(*rnk)(page_list, reboot_code_buffer, image->start);

#ifdef CONFIG_KEXEC_JUMP
asm volatile("ldc %0, vbr" : : "r" (&vbr_base) : "memory");
local_irq_disable();
clear_bl_bit();

if (image->preserve_context)
restore_processor_state();

Expand Down

0 comments on commit 9b603d7

Please sign in to comment.