Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157071
b: refs/heads/master
c: ce2eef3
h: refs/heads/master
i:
  157069: f4cd9a3
  157067: fabec39
  157063: 5ed5fbb
  157055: 2093ba6
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Aug 20, 2009
1 parent fa48dd0 commit 81d914a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5416c2663517ebd0be0664c4d4ce3df0b116c059
refs/heads/master: ce2eef33d35cd7b932492b5a81fb0febd2b323cd
4 changes: 4 additions & 0 deletions trunk/arch/x86/xen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ CFLAGS_REMOVE_time.o = -pg
CFLAGS_REMOVE_irq.o = -pg
endif

# Make sure early boot has no stackprotector
nostackp := $(call cc-option, -fno-stack-protector)
CFLAGS_enlighten.o := $(nostackp)

obj-y := enlighten.o setup.o multicalls.o mmu.o irq.o \
time.o xen-asm.o xen-asm_$(BITS).o \
grant-table.o suspend.o
Expand Down
22 changes: 10 additions & 12 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,10 +925,6 @@ asmlinkage void __init xen_start_kernel(void)

xen_domain_type = XEN_PV_DOMAIN;

BUG_ON(memcmp(xen_start_info->magic, "xen-3", 5) != 0);

xen_setup_features();

/* Install Xen paravirt ops */
pv_info = xen_info;
pv_init_ops = xen_init_ops;
Expand All @@ -937,8 +933,15 @@ asmlinkage void __init xen_start_kernel(void)
pv_apic_ops = xen_apic_ops;
pv_mmu_ops = xen_mmu_ops;

xen_init_irq_ops();
#ifdef CONFIG_X86_64
/*
* Setup percpu state. We only need to do this for 64-bit
* because 32-bit already has %fs set properly.
*/
load_percpu_segment(0);
#endif

xen_init_irq_ops();
xen_init_cpuid_mask();

#ifdef CONFIG_X86_LOCAL_APIC
Expand All @@ -948,20 +951,15 @@ asmlinkage void __init xen_start_kernel(void)
set_xen_basic_apic_ops();
#endif

xen_setup_features();

if (xen_feature(XENFEAT_mmu_pt_update_preserve_ad)) {
pv_mmu_ops.ptep_modify_prot_start = xen_ptep_modify_prot_start;
pv_mmu_ops.ptep_modify_prot_commit = xen_ptep_modify_prot_commit;
}

machine_ops = xen_machine_ops;

#ifdef CONFIG_X86_64
/*
* Setup percpu state. We only need to do this for 64-bit
* because 32-bit already has %fs set properly.
*/
load_percpu_segment(0);
#endif
/*
* The only reliable way to retain the initial address of the
* percpu gdt_page is to remember it here, so we can go and
Expand Down

0 comments on commit 81d914a

Please sign in to comment.