Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)

Zachary Amsden
2007-04-13T21:10:17Z

H. Peter Anvin wrote:
>
> #ifdef CONFIG_X86_PAE
> PAGE_TABLE_SIZE = (2048+4)*4096
> #else
> PAGE_TABLE_SIZE = (1024+1)*4096
> #endif
> BOOTMEM_SIZE = 128*1024

/* ACPI and SMP trampoline allocate bootmem pages before paging_init */
#ifdef CONFIG_SMP
SMP_BOOTMEM_EARLY= 1
#else
SMP_BOOTMEM_EARLY= 0
#endif

#ifdef CONFIG_ACPI
ACPI_BOOTMEM_EARLY = 1
#else
ACPI_BOOTMEM_EARLY = 0
#endif

>
> INIT_MAP_BEYOND_END = BOOTMEM_SIZE + PAGE_TABLE_SIZE

+SMP_BOOTMEM_EARLY + ACPI_BOOTMEM_EARLY

Zach