diff options
Diffstat (limited to 'arch/x86/mm/pgtable_32.c')
| -rw-r--r-- | arch/x86/mm/pgtable_32.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c index 0951db9ee519..f2e477c91c1b 100644 --- a/arch/x86/mm/pgtable_32.c +++ b/arch/x86/mm/pgtable_32.c | |||
| @@ -20,6 +20,8 @@ | |||
| 20 | #include <asm/tlb.h> | 20 | #include <asm/tlb.h> |
| 21 | #include <asm/tlbflush.h> | 21 | #include <asm/tlbflush.h> |
| 22 | 22 | ||
| 23 | unsigned int __VMALLOC_RESERVE = 128 << 20; | ||
| 24 | |||
| 23 | /* | 25 | /* |
| 24 | * Associate a virtual page frame with a given physical page frame | 26 | * Associate a virtual page frame with a given physical page frame |
| 25 | * and protection flags for that frame. | 27 | * and protection flags for that frame. |
| @@ -97,22 +99,6 @@ void set_pmd_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags) | |||
| 97 | unsigned long __FIXADDR_TOP = 0xfffff000; | 99 | unsigned long __FIXADDR_TOP = 0xfffff000; |
| 98 | EXPORT_SYMBOL(__FIXADDR_TOP); | 100 | EXPORT_SYMBOL(__FIXADDR_TOP); |
| 99 | 101 | ||
| 100 | /** | ||
| 101 | * reserve_top_address - reserves a hole in the top of kernel address space | ||
| 102 | * @reserve - size of hole to reserve | ||
| 103 | * | ||
| 104 | * Can be used to relocate the fixmap area and poke a hole in the top | ||
| 105 | * of kernel address space to make room for a hypervisor. | ||
| 106 | */ | ||
| 107 | void __init reserve_top_address(unsigned long reserve) | ||
| 108 | { | ||
| 109 | BUG_ON(fixmaps_set > 0); | ||
| 110 | printk(KERN_INFO "Reserving virtual address space above 0x%08x\n", | ||
| 111 | (int)-reserve); | ||
| 112 | __FIXADDR_TOP = -reserve - PAGE_SIZE; | ||
| 113 | __VMALLOC_RESERVE += reserve; | ||
| 114 | } | ||
| 115 | |||
| 116 | /* | 102 | /* |
| 117 | * vmalloc=size forces the vmalloc area to be exactly 'size' | 103 | * vmalloc=size forces the vmalloc area to be exactly 'size' |
| 118 | * bytes. This can be used to increase (or decrease) the | 104 | * bytes. This can be used to increase (or decrease) the |
