Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133348
b: refs/heads/master
c: 615e73b
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Mar 20, 2009
1 parent 1768613 commit 4e22dba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 7e6b6f2b949a52382f59a93ecbe86e32e4fcec7c
refs/heads/master: 615e73b3cd8876262f61ea28b4147c8de38a043a
9 changes: 8 additions & 1 deletion trunk/arch/sh/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ void machine_crash_shutdown(struct pt_regs *regs)
*/
int machine_kexec_prepare(struct kimage *image)
{
/* older versions of kexec-tools are passing
* the zImage entry point as a virtual address.
*/
if (image->start != PHYSADDR(image->start))
return -EINVAL; /* upgrade your kexec-tools */

return 0;
}

Expand Down Expand Up @@ -125,7 +131,8 @@ void machine_kexec(struct kimage *image)

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

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

0 comments on commit 4e22dba

Please sign in to comment.