Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212747
b: refs/heads/master
c: 236260b
h: refs/heads/master
i:
  212745: 86d664e
  212743: 1067a82
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and H. Peter Anvin committed Oct 11, 2010
1 parent b7875d8 commit d1e0d14
Show file tree
Hide file tree
Showing 3 changed files with 10 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: 153db80f8cf74e8700cac96305b6c0b92918f17c
refs/heads/master: 236260b90dd94516982ad67aa6f5449c4c37db7b
3 changes: 3 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/console.h>
#include <linux/pci.h>
#include <linux/gfp.h>
#include <linux/memblock.h>

#include <xen/xen.h>
#include <xen/interface/xen.h>
Expand Down Expand Up @@ -1183,6 +1184,8 @@ asmlinkage void __init xen_start_kernel(void)
local_irq_disable();
early_boot_irqs_off();

memblock_init();

xen_raw_console_write("mapping kernel into physical memory\n");
pgd = xen_setup_kernel_pagetable(pgd, xen_start_info->nr_pages);

Expand Down
6 changes: 6 additions & 0 deletions trunk/mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,12 @@ void __init memblock_analyze(void)

void __init memblock_init(void)
{
static int init_done __initdata = 0;

if (init_done)
return;
init_done = 1;

/* Hookup the initial arrays */
memblock.memory.regions = memblock_memory_init_regions;
memblock.memory.max = INIT_MEMBLOCK_REGIONS;
Expand Down

0 comments on commit d1e0d14

Please sign in to comment.