[OpenBIOS] [PATCH 4/5] Introduce ofmem_arch_get_phys_top() for specifying the top of physical memory in OFMEM.
Andreas Färber
andreas.faerber at web.de
Tue Dec 21 22:27:57 CET 2010
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 at 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
More information about the OpenBIOS
mailing list