j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
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 --- openbios-devel/libopenbios/ofmem_common.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/openbios-devel/libopenbios/ofmem_common.c b/openbios-devel/libopenbios/ofmem_common.c index 6d0f417..a2c69f8 100644 --- a/openbios-devel/libopenbios/ofmem_common.c +++ b/openbios-devel/libopenbios/ofmem_common.c @@ -481,6 +481,7 @@ static phys_addr_t ofmem_claim_phys_( phys_addr_t phys, ucell size, ucell align, 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 @@ static ucell ofmem_claim_virt_( ucell virt, ucell size, ucell align, return -1; } add_entry( virt, size, &ofmem->virt_range ); + ofmem_update_translations(); return virt; }
@@ -524,6 +526,9 @@ static ucell ofmem_claim_virt_( ucell virt, ucell size, ucell align, return -1; } add_entry( virt, size, &ofmem->virt_range ); + + ofmem_update_translations(); + return virt; }