Eliminate separate BiosTableSpace[] space for f-segment allocations.
commit6d152646612f00f5e4792b3c32f659444ab16930
authorKevin O'Connor <kevin@koconnor.net>
Wed, 20 Feb 2013 02:35:20 +0000 (19 21:35 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 20 Feb 2013 02:57:24 +0000 (19 21:57 -0500)
tree7aafb4b152c0ec45b742fcb6b620e1247ba44aef
parentf85e4bc030e38966b48e8085ba74f58b40603a46
Eliminate separate BiosTableSpace[] space for f-segment allocations.

The BiosTableSpace variable was used to ensure there was sufficient
space in the f-segment for malloc_fseg() calls.  However, it added 2K
to the final image size to reserve that space.

Update the build to determine where to put the f-segment allocations.
In most cases (when code relocation is enabled) allocations can be
done in the space free'd from the "init" sections and no additional
space needs to be reserved in the final image.  This also has the
benefit of not fragmenting the f-segment allocation space.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/config.h
src/pmm.c
tools/layoutrom.py