[OpenBIOS] [PATCH 5/6] OFMEM: Fix missing ofmem_update_translations() calls.

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Sun Jan 9 18:56:34 CET 2011


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




More information about the OpenBIOS mailing list