Skip to content

Commit

Permalink
add-vmcore: use the existing ia64_tpa() instead of asm code
Browse files Browse the repository at this point in the history
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ken'ichi Ohmichi authored and Linus Torvalds committed Oct 17, 2007
1 parent 6cfa062 commit 00cab92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/ia64/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/setup.h>
#include <asm/delay.h>
#include <asm/meminit.h>
#include <asm/processor.h>

typedef NORET_TYPE void (*relocate_new_kernel_t)(
unsigned long indirection_page,
Expand Down Expand Up @@ -145,9 +146,6 @@ void arch_crash_save_vmcoreinfo(void)

unsigned long paddr_vmcoreinfo_note(void)
{
unsigned long vaddr, paddr;
vaddr = (unsigned long)(char *)&vmcoreinfo_note;
asm volatile ("tpa %0 = %1" : "=r"(paddr) : "r"(vaddr) : "memory");
return paddr;
return ia64_tpa((unsigned long)(char *)&vmcoreinfo_note);
}

0 comments on commit 00cab92

Please sign in to comment.