/[pkg-src]/tags/kernel26-xen-2_6_25_r1-fedora9-patches/kernel26-xen/patches-2.6.25-r1/1151-2.6.25-xen-reserve_early-kernel-text-and-data-segments.patch |
Contents of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/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 608 -
(show annotations)
(download)
Fri May 23 12:17:32 2008 UTC (16 years ago) by (unknown author)
File size: 1068 byte(s)
Fri May 23 12:17:32 2008 UTC (16 years ago) by (unknown author)
File size: 1068 byte(s)
This commit was manufactured by cvs2svn to create tag 'kernel26-xen-2_6_25_r1-fedora9-patches'.
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 |