aboutsummaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-20 12:18:29 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-20 12:18:29 +0000
commit6cf88c430953ebd422566ad888258bc0b91039a7 (patch)
treead359fd6b91ad52d86cb67368248786800d5ff8a /patches
parent7263379ba795cb86462825f3b13a2a92c22f05eb (diff)
downloadxen-6cf88c430953ebd422566ad888258bc0b91039a7.tar.gz
xen-6cf88c430953ebd422566ad888258bc0b91039a7.tar.bz2
xen-6cf88c430953ebd422566ad888258bc0b91039a7.zip
linux/x86: Advertise which page table entries contain MFNs and hence
need to be (un)canonicalized during save/restore. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'patches')
-rw-r--r--patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch21
1 files changed, 17 insertions, 4 deletions
diff --git a/patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch b/patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch
index 79054fc191..9989d78297 100644
--- a/patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch
+++ b/patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch
@@ -1,7 +1,7 @@
diff -pruN ../orig-linux-2.6.18/include/linux/elfnote.h ./include/linux/elfnote.h
--- ../orig-linux-2.6.18/include/linux/elfnote.h 2007-01-12 18:19:44.000000000 +0000
+++ ./include/linux/elfnote.h 2007-01-12 18:21:02.000000000 +0000
-@@ -31,22 +31,24 @@
+@@ -31,22 +31,38 @@
/*
* Generate a structure with the same shape as Elf{32,64}_Nhdr (which
* turn out to be the same size and shape), followed by the name and
@@ -25,9 +25,21 @@ diff -pruN ../orig-linux-2.6.18/include/linux/elfnote.h ./include/linux/elfnote.
-2:.align 4
-3:\desc
-4:.align 4
--.popsection
++#ifdef __STDC__
++#define ELFNOTE(name, type, desctype, descdata...) \
++.pushsection .note.name ; \
++ .align 4 ; \
++ .long 2f - 1f /* namesz */ ; \
++ .long 4f - 3f /* descsz */ ; \
++ .long type ; \
++1:.asciz #name ; \
++2:.align 4 ; \
++3:desctype descdata ; \
++4:.align 4 ; \
+ .popsection
-.endm
-+#define ELFNOTE(name, type, desctype, descdata) \
++#else /* !__STDC__, i.e. -traditional */
++#define ELFNOTE(name, type, desctype, descdata) \
+.pushsection .note.name ; \
+ .align 4 ; \
+ .long 2f - 1f /* namesz */ ; \
@@ -37,7 +49,8 @@ diff -pruN ../orig-linux-2.6.18/include/linux/elfnote.h ./include/linux/elfnote.
+2:.align 4 ; \
+3:desctype descdata ; \
+4:.align 4 ; \
-+.popsection ;
++.popsection
++#endif /* __STDC__ */
#else /* !__ASSEMBLER__ */
#include <linux/elf.h>
/*