svn commit: r213226 - head/sys/i386/i386

John Baldwin jhb at freebsd.org
Mon Sep 27 19:42:05 UTC 2010


On Monday, September 27, 2010 3:36:16 pm John Baldwin wrote:
> Author: jhb
> Date: Mon Sep 27 19:36:15 2010
> New Revision: 213226
> URL: http://svn.freebsd.org/changeset/base/213226
> 
> Log:
>   Rewrite the i386 memory probe:
>   - Check for SMAP data from the loader first.  If it exists, don't bother
>     doing any VM86 calls at all.  This will be more friendly for non-BIOS
>     boot environments such as EFI, etc.
>   - Move the base memory setup into a new basemem_setup() routine instead
>     of duplicating it.
>   - Simplify the XEN case by removing all of the VM86/SMAP parsing code rather
>     than just jumping over it.
>   - Adjust some comments to better explain the code flow.

This could maybe be cleaned up a bit further by splitting getmemsize() up
into two routines: one to populate physmap[], and one to do the rest.  Then
XEN could just have a separate routine for the first function for example.

-- 
John Baldwin


More information about the svn-src-head mailing list