* [Patch] Fix PA() in purgatory-ia64.c
@ 2007-11-09 9:34 Akio Takebe
0 siblings, 0 replies; only message in thread
From: Akio Takebe @ 2007-11-09 9:34 UTC (permalink / raw)
To: kexec, xen-ia64-devel; +Cc: Simon Horman
Hi,
I met the issue that kdump didn't work on Xen/HVM guest.
I investigated the cause, found that PA() in purgatory-ia64.c
is used in Physical mode.
The PA() currently use PAGE_OFFSET fixed size(0xe000000000000000UL).
So the PA() don't work properly if it is called in Physcal mode.
inline unsigned long PA(unsigned long addr)
{
return addr - PAGE_OFFSET;
}
I make the patch to fix this issue.
How about this?
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Best Regards,
Akio Takebe
---
--- kexec-tools-testing-20071030.orig/purgatory/arch/ia64/purgatory-ia64.c 2007-10-17 12:16:16.000000000 +0900
+++ kexec-tools-testing-20071030/purgatory/arch/ia64/purgatory-ia64.c 2007-11-09 18:20:27.000000000 +0900
@@ -21,7 +21,7 @@
#include <string.h>
#include "purgatory-ia64.h"
-#define PAGE_OFFSET 0xe000000000000000UL
+#define RGN_MASK 0xf000000000000000UL
#define EFI_PAGE_SHIFT 12
#define EFI_PAGE_SIZE (1UL<<EFI_PAGE_SHIFT)
@@ -147,7 +147,7 @@ setup_arch(void)
inline unsigned long PA(unsigned long addr)
{
- return addr - PAGE_OFFSET;
+ return addr|~RGN_MASK;
}
void
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-09 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09 9:34 [Patch] Fix PA() in purgatory-ia64.c Akio Takebe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox