Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104411
b: refs/heads/master
c: f5d36de
h: refs/heads/master
i:
  104409: 89e8388
  104407: a07ab34
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jul 16, 2008
1 parent 9a2bda1 commit 88d96bd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6e587325b3bc7e5c829a407ddc25b52c1e73851
refs/heads/master: f5d36de069f4b343f64e858e7377cfc9c772c4fb
15 changes: 15 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -1296,13 +1296,15 @@ static const struct machine_ops __initdata xen_machine_ops = {

static void __init xen_reserve_top(void)
{
#ifdef CONFIG_X86_32
unsigned long top = HYPERVISOR_VIRT_START;
struct xen_platform_parameters pp;

if (HYPERVISOR_xen_version(XENVER_platform_parameters, &pp) == 0)
top = pp.virt_start;

reserve_top_address(-top + 2 * PAGE_SIZE);
#endif /* CONFIG_X86_32 */
}

/* First C function to be called on Xen boot */
Expand Down Expand Up @@ -1333,6 +1335,11 @@ asmlinkage void __init xen_start_kernel(void)

machine_ops = xen_machine_ops;

#ifdef CONFIG_X86_64
/* Disable until direct per-cpu data access. */
have_vcpu_info_placement = 0;
#endif

#ifdef CONFIG_SMP
smp_ops = xen_smp_ops;
#endif
Expand All @@ -1343,9 +1350,11 @@ asmlinkage void __init xen_start_kernel(void)

pgd = (pgd_t *)xen_start_info->pt_base;

#ifdef CONFIG_X86_32
init_pg_tables_start = __pa(pgd);
init_pg_tables_end = __pa(pgd) + xen_start_info->nr_pt_frames*PAGE_SIZE;
max_pfn_mapped = (init_pg_tables_end + 512*1024) >> PAGE_SHIFT;
#endif

init_mm.pgd = pgd; /* use the Xen pagetables to start */

Expand All @@ -1372,7 +1381,9 @@ asmlinkage void __init xen_start_kernel(void)

/* set up basic CPUID stuff */
cpu_detect(&new_cpu_data);
#ifdef CONFIG_X86_32
new_cpu_data.hard_math = 1;
#endif
new_cpu_data.x86_capability[0] = cpuid_edx(1);

/* Poke various useful things into boot_params */
Expand All @@ -1388,5 +1399,9 @@ asmlinkage void __init xen_start_kernel(void)
}

/* Start the world */
#ifdef CONFIG_X86_32
i386_start_kernel();
#else
x86_64_start_kernel((char *)&boot_params);
#endif
}

0 comments on commit 88d96bd

Please sign in to comment.