Magellan Linux

Annotation of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/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 608 - (hide annotations) (download)
Fri May 23 12:17:32 2008 UTC (16 years, 4 months ago) by (unknown author)
File size: 1134 byte(s)
This commit was manufactured by cvs2svn to create tag
'kernel26-xen-2_6_25_r1-fedora9-patches'.
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