public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* early_res and find_e820_area for i386?
@ 2008-03-04  3:38 Huang, Ying
  2008-03-04  4:23 ` H. Peter Anvin
  2008-03-04 10:41 ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Huang, Ying @ 2008-03-04  3:38 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar, Thomas Gleixner, Andi Kleen; +Cc: linux-kernel

Hi,

Before bootmem allocator is available, kernel needs allocate memory
pages such as page table and some NUMA structures. On x86_64, this is
done by early_res and find_e820_area. On i386, this is done through
using the memory area after kernel itself which is tracked with
init_pg_tables_end.

Is it better to implement early_res and find_e820_area on i386? Can we
trust E820 table on i386?

Or we add an early_alloc, which allocate memory from the memory area
after kernel itself and check the early_res areas and E820 table too.

BTW: Why not merge e820_32.c and e820_64.c? At least part of them.

Best Regards,
Huang Ying


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-04 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04  3:38 early_res and find_e820_area for i386? Huang, Ying
2008-03-04  4:23 ` H. Peter Anvin
2008-03-04 10:34   ` Ingo Molnar
2008-03-04 10:41 ` Andi Kleen
2008-03-04 10:48   ` Ingo Molnar
2008-03-04 11:46     ` Andi Kleen
2008-03-04 16:31     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox