提交 00cab92f 编写于 作者: K Ken'ichi Ohmichi 提交者: Linus Torvalds

add-vmcore: use the existing ia64_tpa() instead of asm code

Signed-off-by: NKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6cfa062f
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/delay.h> #include <asm/delay.h>
#include <asm/meminit.h> #include <asm/meminit.h>
#include <asm/processor.h>
typedef NORET_TYPE void (*relocate_new_kernel_t)( typedef NORET_TYPE void (*relocate_new_kernel_t)(
unsigned long indirection_page, unsigned long indirection_page,
...@@ -145,9 +146,6 @@ void arch_crash_save_vmcoreinfo(void) ...@@ -145,9 +146,6 @@ void arch_crash_save_vmcoreinfo(void)
unsigned long paddr_vmcoreinfo_note(void) unsigned long paddr_vmcoreinfo_note(void)
{ {
unsigned long vaddr, paddr; return ia64_tpa((unsigned long)(char *)&vmcoreinfo_note);
vaddr = (unsigned long)(char *)&vmcoreinfo_note;
asm volatile ("tpa %0 = %1" : "=r"(paddr) : "r"(vaddr) : "memory");
return paddr;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册