Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00cab92f authored by Ken'ichi Ohmichi's avatar Ken'ichi Ohmichi Committed by Linus Torvalds
Browse files

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

parent 6cfa062f
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -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;
}
}