aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/i386/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/i386/setup.c')
-rw-r--r--xen/arch/i386/setup.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xen/arch/i386/setup.c b/xen/arch/i386/setup.c
index ec55c1c3ac..58b8496323 100644
--- a/xen/arch/i386/setup.c
+++ b/xen/arch/i386/setup.c
@@ -254,7 +254,7 @@ void __init cpu_init(void)
/* Set up and load the per-CPU TSS and LDT. */
t->ss0 = __HYPERVISOR_DS;
- t->esp0 = current->thread.esp0;
+ t->esp0 = get_stack_top();
set_tss_desc(nr,t);
load_TR(nr);
__asm__ __volatile__("lldt %%ax"::"a" (0));
@@ -414,14 +414,11 @@ void __init start_of_day(void)
check_nmi_watchdog();
zap_low_mappings();
- kmem_cache_init();
- kmem_cache_sizes_init(max_page);
+
#ifdef CONFIG_PCI
pci_init();
#endif
do_initcalls();
-
-
initialize_serial(); /* setup serial 'driver' (for debugging) */
initialize_keyboard(); /* setup keyboard (also for debugging) */