[OpenBIOS] [commit] r1023 - trunk/openbios-devel/libopenbios

repository service svn at openbios.org
Tue Feb 8 23:06:57 CET 2011


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 at 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;
 }
 



More information about the OpenBIOS mailing list