[OpenBIOS] [commit] r1120 - in trunk/openbios-devel: arch/sparc32 forth/device

repository service svn at openbios.org
Fri Apr 19 09:03:49 CEST 2013


Author: mcayland
Date: Fri Apr 19 09:03:38 2013
New Revision: 1120
URL: http://tracker.coreboot.org/trac/openbios/changeset/1120

Log:
Remove /chosen "memory" property from the default device tree.

Similar to the earlier commit for "mmu", do the same for /chosen "memory"
property. Hence all architectures that want the "pretty" memory properties
can provide suitable ihandles if required, and those that don't will not
fail with a NULL pointer dereference from a zero ihandle.

While we're here, correct the SPARC32 initialiser to point to the correct
/virtual-memory node for "mmu" so that once again we can get "pretty"
memory properties on SPARC32.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/arch/sparc32/init.fs
   trunk/openbios-devel/forth/device/tree.fs

Modified: trunk/openbios-devel/arch/sparc32/init.fs
==============================================================================
--- trunk/openbios-devel/arch/sparc32/init.fs	Fri Apr 19 09:03:26 2013	(r1119)
+++ trunk/openbios-devel/arch/sparc32/init.fs	Fri Apr 19 09:03:38 2013	(r1120)
@@ -32,7 +32,7 @@
 \ preopen device nodes (and store the ihandles under /chosen)
 :noname
   " memory" " /memory" preopen
-  " mmu" " /cpus/@0" preopen
+  " mmu" " /virtual-memory" preopen
 ; SYSTEM-initializer
 
 device-end

Modified: trunk/openbios-devel/forth/device/tree.fs
==============================================================================
--- trunk/openbios-devel/forth/device/tree.fs	Fri Apr 19 09:03:26 2013	(r1119)
+++ trunk/openbios-devel/forth/device/tree.fs	Fri Apr 19 09:03:38 2013	(r1120)
@@ -53,7 +53,6 @@
   0 encode-int " stdout" property
   \ " hda1:/boot/vmunix" encode-string " bootpath" property
   \ " -as" encode-string " bootargs" property
-  0 encode-int " memory" property
 finish-device
   
 \ END



More information about the OpenBIOS mailing list