add-vmcore: use the existing ia64_tpa() instead of asm code
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>
This commit is contained in:
parent
6cfa062f01
commit
00cab92f9e
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue