From: Kevin O'Connor Date: Sun, 4 Oct 2009 16:06:59 +0000 (-0400) Subject: Workaround gcc4.3 compiler error - disable pmm low mem allocations. X-Git-Tag: rel-0.5.0~95 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7bd5a8fafa9a9d060b1a15228c785a2b3f943cd2;p=seabios.git 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. --- diff --git a/src/pmm.c b/src/pmm.c index 6ce6c6f..e90a7a8 100644 --- a/src/pmm.c +++ b/src/pmm.c @@ -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;