diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-04 12:06:59 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-04 12:06:59 -0400 |
commit | 7bd5a8fafa9a9d060b1a15228c785a2b3f943cd2 (patch) | |
tree | 20d302be8a1307764b0465731d677a803322ae5d /src/pmm.c | |
parent | e7cc7642e0fa437dad181cf8a3a8c8e7039dd17d (diff) | |
download | seabios-7bd5a8fafa9a9d060b1a15228c785a2b3f943cd2.zip seabios-7bd5a8fafa9a9d060b1a15228c785a2b3f943cd2.tar.gz seabios-7bd5a8fafa9a9d060b1a15228c785a2b3f943cd2.tar.bz2 |
Workaround gcc4.3 compiler error - disable pmm low mem allocations.
For some unknown reason, the 16bit version of low memory expansion is
confusing gcc4.3. For now, just disable it as it isn't used in
practice.
Diffstat (limited to 'src/pmm.c')
-rw-r--r-- | src/pmm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -250,12 +250,14 @@ pmm_malloc(struct zone_s *zone, u32 handle, u32 size, u32 align) return NULL; u32 olddata = GET_PMMVAR(zone->cur); void *data = zone_malloc(zone, size, align); +#if 0 // XXX - gcc4.3 internal compiler error - disable for now if (!data && zone == &ZoneLow) { // Try to expand permanent low zone. zonelow_expand(size, align); olddata = GET_PMMVAR(zone->cur); data = zone_malloc(zone, size, align); } +#endif if (! data) { zone_free(ZONEALLOC, info, oldallocdata); return NULL; |