On Sun, Mar 1, 2009 at 4:29 PM, H. Peter Anvin wrote: > It's still really ugly, though.  A much easier and cleaner way would seem to > be to calculate a far limit on the brk and then marking it as a formal > (non-alloc) section in the linker script and vmlinux file.  That way > anything that examines the vmlinux file will see it as an exclusion section. >  We can (and should) even verify that we don't overflow the brk and panic if > we do. please check attached patch. [PATCH] x86: put initial_pg_tables into .bss -v4 Impact: cleanup Don't use ram after _end blindly for pagetables. aka init pages is before _end put those pg table into .bss v2: keep initial page table up to 512M only. v4: put initial page tables just before _end Signed-off-by: Yinghai Lu YH