Linux IA64 platform development
 help / color / mirror / Atom feed
* [patch] Obtain PAGE_OFFSET from running kernel
@ 2006-10-06  4:11 Horms
  0 siblings, 0 replies; only message in thread
From: Horms @ 2006-10-06  4:11 UTC (permalink / raw)
  To: linux-ia64

Currently the page offset is hard coded to 0xe000000000000000UL
at compile time of kexec-tools. This patch changes things around
so the page offset is handed to purgatory by the kexecing kernel.

Note that this changes the ABI between purgatory (part of kexec-tools)
and the kernel kexec code. There is an accomanying kexec-tools patch.

Signed-Off-By: Simon Horman <horms@verge.net.au>

Index: kexec-ia64-2.6/arch/ia64/kernel/relocate_kernel.S
=================================--- kexec-ia64-2.6.orig/arch/ia64/kernel/relocate_kernel.S	2006-10-05 11:56:24.000000000 +0900
+++ kexec-ia64-2.6/arch/ia64/kernel/relocate_kernel.S	2006-10-05 11:57:24.000000000 +0900
@@ -22,7 +22,7 @@
 */
 GLOBAL_ENTRY(relocate_new_kernel)
 	.prologue
-	alloc r31=ar.pfs,4,0,0,0
+	alloc r31=ar.pfs,4,0,1,0
 	.body
 .reloc_entry:
 {
@@ -180,6 +180,7 @@
 	;;
 	srlz.d
 	;;
+	movl out0=PAGE_OFFSET;;
 	br.call.sptk.many b0¶;;
 
 .align 32

--

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-06  4:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06  4:11 [patch] Obtain PAGE_OFFSET from running kernel Horms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox