[OpenBIOS] [commit] r1332 - trunk/openbios-devel/arch/sparc32

repository service svn at openbios.org
Wed Mar 11 23:58:16 CET 2015


Author: mcayland
Date: Wed Mar 11 23:58:15 2015
New Revision: 1332
URL: http://tracker.coreboot.org/trac/openbios/changeset/1332

Log:
SPARC32: fix initialisation of L1 page table

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>

Modified:
   trunk/openbios-devel/arch/sparc32/lib.c

Modified: trunk/openbios-devel/arch/sparc32/lib.c
==============================================================================
--- trunk/openbios-devel/arch/sparc32/lib.c	Wed Mar 11 23:58:13 2015	(r1331)
+++ trunk/openbios-devel/arch/sparc32/lib.c	Wed Mar 11 23:58:15 2015	(r1332)
@@ -367,7 +367,7 @@
     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;
     }
 



More information about the OpenBIOS mailing list