add-vmcore: use the existing ia64_tpa() instead of asm code
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Wed, 17 Oct 2007 06:27:29 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:54 +0000 (08:42 -0700)
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>
arch/ia64/kernel/machine_kexec.c

index 40f9c3e19220acff046e3aaa159a14ba2396fa43..c55a0909b9017ab5e5a4f43edcde5143a791b867 100644 (file)
@@ -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,
@@ -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);
 }