Re: early_res and find_e820_area for i386?

Andi Kleen
2008-03-04T10:41:43Z

On Tuesday 04 March 2008 04:38:03 Huang, Ying wrote:

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

The 64bit code is certainly more flexible and cleaner, but also
much more complicated.. But on the other hand i386 has simpler requirements
so it didn't really need the full power. I didn't think that had changed.

The key change if you wanted to do that would be to change all the unsigned longs to
pfns -- the 64bit code is not all together 32bit clean. Or perhaps better
pfns + page offset since some of the allocations don't need to be page aligned
and would waste memory if they were forced to pfns.

An alternative might be to use the new allocators only for <4GB
on i386 and keep handling >4GB in some other way.

-Andi