[OpenBIOS] [PATCHv2 2/4] SPARC32: fix initialisation of L1 page table
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun Feb 22 22:27:31 CET 2015
Since l1 is a pointer to an array of longs, the increment size should be 1
(element) and not 4 (bytes). While this shouldn't have an effect when booting
an image from fresh, it meant that the L1 page table contained old entries
after a reboot.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/arch/sparc32/lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openbios-devel/arch/sparc32/lib.c b/openbios-devel/arch/sparc32/lib.c
index af1812d..d27b604 100644
--- a/openbios-devel/arch/sparc32/lib.c
+++ b/openbios-devel/arch/sparc32/lib.c
@@ -367,7 +367,7 @@ init_mmu_swift(void)
for (i = 1; i < NCTX_SWIFT; i++) {
context_table[i] = SRMMU_ET_INVALID;
}
- for (i = 0; i < 256; i += 4) {
+ for (i = 0; i < 256; i++) {
l1[i] = SRMMU_ET_INVALID;
}
--
1.7.10.4
More information about the OpenBIOS
mailing list