Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70931
b: refs/heads/master
c: fb1d840
h: refs/heads/master
i:
  70929: f665324
  70927: 16f0bf9
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Jeremy Fitzhardinge committed Oct 16, 2007
1 parent 3c203ef commit eb897a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: 74260714c56de4f967fcb2f17a8656bc574b75be
refs/heads/master: fb1d84043ca73212b08ff57608f51b372529e6d6
13 changes: 12 additions & 1 deletion trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,17 @@ static const struct machine_ops __initdata xen_machine_ops = {
};


static void __init xen_reserve_top(void)
{
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);
}

/* First C function to be called on Xen boot */
asmlinkage void __init xen_start_kernel(void)
{
Expand Down Expand Up @@ -1169,7 +1180,7 @@ asmlinkage void __init xen_start_kernel(void)
pv_info.kernel_rpl = 0;

/* set the limit of our address space */
reserve_top_address(-HYPERVISOR_VIRT_START + 2 * PAGE_SIZE);
xen_reserve_top();

/* set up basic CPUID stuff */
cpu_detect(&new_cpu_data);
Expand Down

0 comments on commit eb897a1

Please sign in to comment.