Magellan Linux

Annotation of /trunk/kernel26-xen/patches-2.6.25-r1/1049-2.6.25-xen-x86_64-pda-initialization.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (hide annotations) (download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 1134 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 niro 606 From 872deddb52216dce96e0cacda70a18334e32c4ec Mon Sep 17 00:00:00 2001
2     From: Eduardo Habkost <ehabkost@redhat.com>
3     Date: Tue, 4 Dec 2007 17:01:56 -0200
4     Subject: [PATCH] xen x86_64 pda initialization
5    
6     Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7     ---
8     arch/x86/xen/enlighten.c | 14 ++++++++++++++
9     1 files changed, 14 insertions(+), 0 deletions(-)
10    
11     diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
12     index 48a9e35..bb97446 100644
13     --- a/arch/x86/xen/enlighten.c
14     +++ b/arch/x86/xen/enlighten.c
15     @@ -45,6 +45,7 @@
16     #include <asm/pgtable.h>
17     #include <asm/tlbflush.h>
18     #include <asm/reboot.h>
19     +#include <asm/proto.h>
20    
21     #include "xen-ops.h"
22     #include "mmu.h"
23     @@ -1229,6 +1230,19 @@ asmlinkage void __init xen_start_kernel(void)
24    
25     BUG_ON(memcmp(xen_start_info->magic, "xen-3", 5) != 0);
26    
27     +#ifdef CONFIG_X86_64
28     + {
29     + /*FIXME: move this to common code
30     + * (it is duplicated on x86_64_start_kernel()
31     + */
32     + int i;
33     + for (i = 0; i < NR_CPUS; i++)
34     + cpu_pda(i) = &boot_cpu_pda[i];
35     +
36     + pda_init(0);
37     + }
38     +#endif
39     +
40     /* Install Xen paravirt ops */
41     pv_info = xen_info;
42     pv_init_ops = xen_init_ops;
43     --
44     1.5.4.1
45