[PATCH 3/4] [-mm patch] Use the existing ia64_tpa() instead of asm code.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Adrian Bunk <bunk@...>, kexec-ml <kexec@...>, lkml <linux-kernel@...>
Date: Thursday, September 13, 2007 - 10:58 pm

[3/4] Use the existing ia64_tpa() instead of asm code.


Thanks
Ken'ichi Ohmichi

---
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>

---
diff -rpuN a/arch/ia64/kernel/machine_kexec.c b/arch/ia64/kernel/machine_kexec.c
--- a/arch/ia64/kernel/machine_kexec.c	2007-09-10 23:30:33.000000000 +0900
+++ b/arch/ia64/kernel/machine_kexec.c	2007-09-10 23:31:37.000000000 +0900
@@ -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,
@@ -149,9 +150,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);
  }

_

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] [-mm patch] Cleanup add-vmcoreinfo.patch v2, Ken'ichi Ohmichi, (Thu Sep 13, 10:49 pm)
[PATCH 4/4] [-mm patch] Add a prefix "VMCOREINFO_" to the v..., Ken'ichi Ohmichi, (Thu Sep 13, 11:00 pm)
[PATCH 6/4] [-mm patch] use the existing offsetof()., Ken'ichi Ohmichi, (Thu Sep 20, 1:32 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof()., Satyam Sharma, (Thu Sep 20, 8:28 am)
Re: [PATCH 6/4] [-mm patch] use the existing offsetof()., Ken'ichi Ohmichi, (Tue Sep 25, 4:50 am)
[PATCH 5/4] [-mm patch] Rename macros returning the size., Ken'ichi Ohmichi, (Thu Sep 20, 1:30 am)
Re: [PATCH 5/4] [-mm patch] Rename macros returning the size., Ken'ichi Ohmichi, (Tue Sep 25, 4:49 am)
[PATCH 3/4] [-mm patch] Use the existing ia64_tpa() instead..., Ken'ichi Ohmichi, (Thu Sep 13, 10:58 pm)
[PATCH 2/4] [-mm patch] Add nodemask_t's size and NR_FREE_P..., Ken'ichi Ohmichi, (Thu Sep 13, 10:56 pm)
[PATCH 1/4] [-mm patch] Cleanup the coding style according ..., Ken'ichi Ohmichi, (Thu Sep 13, 10:53 pm)