Re: [PATCH 3/3] x86/mm: Separate paging setup from memory mapping

From: Yinghai Lu
Date: Sat Jul 14 2012 - 16:47:59 EST


On Sat, Jul 14, 2012 at 6:41 AM, Pekka Enberg <penberg@xxxxxxxxxx> wrote:
> Move PSE and PGE bit twiddling from init_memory_mapping() to a new
> setup_paging() function to simplify the former function. The
> init_memory_mapping() function is called later in the boot process by
> gart_iommu_init(), efi_ioremap(), and arch_add_memory() which have no
> business whatsover updating the CR4 register.

I have one local patch that will only set that one time too. also do
other page size probe one time.

please check attached one.

Thanks

Yinghai

Attachment: get_page_size_mask.patch
Description: Binary data