j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Tue Feb 8 23:06:56 2011 New Revision: 1023 URL: http://tracker.coreboot.org/trac/openbios/changeset/1023
Log: OFMEM: Fix missing ofmem_update_translations() calls.
Otherwise the device tree properties will not always get updated to reflect the current memory ranges.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c ============================================================================== --- trunk/openbios-devel/libopenbios/ofmem_common.c Tue Feb 8 23:06:54 2011 (r1022) +++ trunk/openbios-devel/libopenbios/ofmem_common.c Tue Feb 8 23:06:56 2011 (r1023) @@ -481,6 +481,7 @@ return -1; } add_entry( phys, size, &ofmem->phys_range ); + ofmem_update_translations(); return phys; } phys = find_area( align, size, ofmem->phys_range, min, max, reverse ); @@ -515,6 +516,7 @@ return -1; } add_entry( virt, size, &ofmem->virt_range ); + ofmem_update_translations(); return virt; }
@@ -524,6 +526,9 @@ return -1; } add_entry( virt, size, &ofmem->virt_range ); + + ofmem_update_translations(); + return virt; }