* Re: [PATCH 2/2] ia64, kexec: make use of shared mmu-related marcos
@ 2006-06-19 8:24 Horms
0 siblings, 0 replies; only message in thread
From: Horms @ 2006-06-19 8:24 UTC (permalink / raw)
To: linux-ia64
This is a follow up patch which makes use of newly shared mmu-related marcos.
Signed-off-by: Horms <horms@verge.net.au>
arch/ia64/kernel/smp.c | 4 ++--
include/asm-ia64/kexec.h | 4 ----
2 files changed, 2 insertions(+), 6 deletions(-)
05aab9d7851bae8cafc152bea91678aa668b1d7d
diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c
index 6337278..81baf67 100644
--- a/arch/ia64/kernel/smp.c
+++ b/arch/ia64/kernel/smp.c
@@ -104,8 +104,8 @@ kexec_stop_this_cpu (void *func)
/* Disable VHPT */
impl_va_bits = ffz(~(local_cpu_data->unimpl_va_mask | (7UL << 61)));
- pta = POW2(61) - POW2(vmlpt_bits);
- ia64_set_pta(pta | (0 << 8) | (vmlpt_bits << 2) | 0);
+ pta = POW2(61) - POW2(vmlpt_bits(impl_va_bits));
+ ia64_set_pta(pta | (0 << 8) | (vmlpt_bits(impl_va_bits) << 2) | 0);
local_irq_disable();
pal_base = __get_cpu_var(ia64_mca_pal_base);
diff --git a/include/asm-ia64/kexec.h b/include/asm-ia64/kexec.h
index d45c03f..e6dbe1d 100644
--- a/include/asm-ia64/kexec.h
+++ b/include/asm-ia64/kexec.h
@@ -16,10 +16,6 @@ #define KEXEC_ARCH KEXEC_ARCH_IA_64
#define MAX_NOTE_BYTES 1024
-#define pte_bits 3
-#define vmlpt_bits (impl_va_bits - PAGE_SHIFT + pte_bits)
-#define POW2(n) (1ULL << (n))
-
DECLARE_PER_CPU(u64, ia64_mca_pal_base);
const extern unsigned int relocate_new_kernel_size;
volatile extern long kexec_rendez;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-19 8:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 8:24 [PATCH 2/2] ia64, kexec: make use of shared mmu-related marcos Horms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox