/[pkg-src]/trunk/kernel26-xen/patches-2.6.25-r1/1151-2.6.25-xen-reserve_early-kernel-text-and-data-segments.patch |
Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1151-2.6.25-xen-reserve_early-kernel-text-and-data-segments.patch
Parent Directory | Revision Log
Revision 606 -
(show annotations)
(download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1068 byte(s)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1068 byte(s)
-ver bump to 2.6.25-magellan-r1: - linux-2.6.25.4 - fbcondecor-0.9.4 - squashfs-3.3 - unionfs-2.3.3 - tuxonice-3.0-rc7 - linux-phc-0.3.0 - acpi-dstd-0.9a - reiser4 - xen-3.2.0 . ipw3945-1.2.2
1 | From 4392b02aa339534e7255e30e52031ff66e0c440d Mon Sep 17 00:00:00 2001 |
2 | From: Eduardo Habkost <ehabkost@redhat.com> |
3 | Date: Thu, 3 Apr 2008 19:10:10 -0300 |
4 | Subject: [PATCH] reserve_early() kernel text and data segments |
5 | |
6 | Just like on start_kernel() |
7 | |
8 | Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> |
9 | --- |
10 | arch/x86/xen/enlighten.c | 3 +++ |
11 | 1 files changed, 3 insertions(+), 0 deletions(-) |
12 | |
13 | diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c |
14 | index 98b78d4..1a72632 100644 |
15 | --- a/arch/x86/xen/enlighten.c |
16 | +++ b/arch/x86/xen/enlighten.c |
17 | @@ -48,6 +48,7 @@ |
18 | #include <asm/tlbflush.h> |
19 | #include <asm/reboot.h> |
20 | #include <asm/proto.h> |
21 | +#include <asm/sections.h> |
22 | |
23 | #include "xen-ops.h" |
24 | #include "mmu.h" |
25 | @@ -1445,6 +1446,8 @@ asmlinkage void __init xen_start_kernel(void) |
26 | possible map and a non-dummy shared_info. */ |
27 | per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; |
28 | |
29 | + reserve_early(__pa_symbol(&_text), __pa_symbol(&_end), "TEXT DATA BSS"); |
30 | + |
31 | xprintk("xen_init_pt:\n"); |
32 | xen_init_pt(); |
33 | xprintk("xen_init_pt returned.\n"); |
34 | -- |
35 | 1.5.4.1 |
36 |