diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-06-17 14:41:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-20 09:09:51 -0400 |
commit | 7c7e6e07e2a7c0d2d96389f4f0540e44a80ecdaa (patch) | |
tree | 5d139f94cae6c1d0ff829c5e9eafd8ee96582712 /arch/x86/mm/pgtable_32.c | |
parent | 944256e00a5466ae6b7a11fdb3a47d092f2f62c1 (diff) |
x86: unify __set_fixmap
In both cases, I went with the 32-bit behaviour.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pgtable_32.c')
-rw-r--r-- | arch/x86/mm/pgtable_32.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c index 369cf065b6a4..3f97c3c87288 100644 --- a/arch/x86/mm/pgtable_32.c +++ b/arch/x86/mm/pgtable_32.c | |||
@@ -145,18 +145,6 @@ static int fixmaps; | |||
145 | unsigned long __FIXADDR_TOP = 0xfffff000; | 145 | unsigned long __FIXADDR_TOP = 0xfffff000; |
146 | EXPORT_SYMBOL(__FIXADDR_TOP); | 146 | EXPORT_SYMBOL(__FIXADDR_TOP); |
147 | 147 | ||
148 | void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags) | ||
149 | { | ||
150 | unsigned long address = __fix_to_virt(idx); | ||
151 | |||
152 | if (idx >= __end_of_fixed_addresses) { | ||
153 | BUG(); | ||
154 | return; | ||
155 | } | ||
156 | set_pte_pfn(address, phys >> PAGE_SHIFT, flags); | ||
157 | fixmaps++; | ||
158 | } | ||
159 | |||
160 | /** | 148 | /** |
161 | * reserve_top_address - reserves a hole in the top of kernel address space | 149 | * reserve_top_address - reserves a hole in the top of kernel address space |
162 | * @reserve - size of hole to reserve | 150 | * @reserve - size of hole to reserve |
@@ -166,7 +154,7 @@ void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags) | |||
166 | */ | 154 | */ |
167 | void reserve_top_address(unsigned long reserve) | 155 | void reserve_top_address(unsigned long reserve) |
168 | { | 156 | { |
169 | BUG_ON(fixmaps > 0); | 157 | BUG_ON(fixmaps_set > 0); |
170 | printk(KERN_INFO "Reserving virtual address space above 0x%08x\n", | 158 | printk(KERN_INFO "Reserving virtual address space above 0x%08x\n", |
171 | (int)-reserve); | 159 | (int)-reserve); |
172 | __FIXADDR_TOP = -reserve - PAGE_SIZE; | 160 | __FIXADDR_TOP = -reserve - PAGE_SIZE; |