init.c (b8291adc191abec2095f03a130ac91506d345cae) init.c (c109bf95992b391bb40bc37c5d309d13fead99b5)
1#include <linux/gfp.h>
2#include <linux/initrd.h>
3#include <linux/ioport.h>
4#include <linux/swap.h>
5#include <linux/memblock.h>
6#include <linux/bootmem.h> /* for max_low_pfn */
7
8#include <asm/cacheflush.h>

--- 152 unchanged lines hidden (view full) ---

161 page_size_mask |= 1 << PG_LEVEL_2M;
162#endif
163
164 /* Enable PSE if available */
165 if (cpu_has_pse)
166 cr4_set_bits_and_update_boot(X86_CR4_PSE);
167
168 /* Enable PGE if available */
1#include <linux/gfp.h>
2#include <linux/initrd.h>
3#include <linux/ioport.h>
4#include <linux/swap.h>
5#include <linux/memblock.h>
6#include <linux/bootmem.h> /* for max_low_pfn */
7
8#include <asm/cacheflush.h>

--- 152 unchanged lines hidden (view full) ---

161 page_size_mask |= 1 << PG_LEVEL_2M;
162#endif
163
164 /* Enable PSE if available */
165 if (cpu_has_pse)
166 cr4_set_bits_and_update_boot(X86_CR4_PSE);
167
168 /* Enable PGE if available */
169 if (cpu_has_pge) {
169 if (boot_cpu_has(X86_FEATURE_PGE)) {
170 cr4_set_bits_and_update_boot(X86_CR4_PGE);
171 __supported_pte_mask |= _PAGE_GLOBAL;
172 } else
173 __supported_pte_mask &= ~_PAGE_GLOBAL;
174
175 /* Enable 1 GB linear kernel mappings if available: */
176 if (direct_gbpages && boot_cpu_has(X86_FEATURE_GBPAGES)) {
177 printk(KERN_INFO "Using GB pages for direct mapping\n");

--- 577 unchanged lines hidden ---
170 cr4_set_bits_and_update_boot(X86_CR4_PGE);
171 __supported_pte_mask |= _PAGE_GLOBAL;
172 } else
173 __supported_pte_mask &= ~_PAGE_GLOBAL;
174
175 /* Enable 1 GB linear kernel mappings if available: */
176 if (direct_gbpages && boot_cpu_has(X86_FEATURE_GBPAGES)) {
177 printk(KERN_INFO "Using GB pages for direct mapping\n");

--- 577 unchanged lines hidden ---