Am 21.12.2010 um 11:38 schrieb Mark Cave-Ayland:
At the same time, teach OFMEM to make use of it when calculating the /memory available property.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
openbios-devel/arch/ppc/qemu/ofmem.c | 7 +++++++ openbios-devel/arch/sparc64/ofmem_sparc64.c | 7 +++++++ openbios-devel/include/libopenbios/ofmem.h | 1 + openbios-devel/libopenbios/ofmem_common.c | 2 +- 4 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/openbios-devel/libopenbios/ofmem_common.c b/openbios- devel/libopenbios/ofmem_common.c index 50cd7d8..f235e98 100644 --- a/openbios-devel/libopenbios/ofmem_common.c +++ b/openbios-devel/libopenbios/ofmem_common.c @@ -341,7 +341,7 @@ static void ofmem_update_translations( void ) ofmem_t *ofmem = ofmem_arch_get_private();
ofmem_update_memory_available(s_phandle_memory, ofmem->phys_range,
&phys_range_prop, &phys_range_prop_size, &phys_range_prop_used,
get_ram_size());
&phys_range_prop, &phys_range_prop_size, &phys_range_prop_used,
ofmem_arch_get_phys_top());
I like this change. Is get_ram_size() still needed elsewhere?
Andreas