[OpenBIOS] [PATCH] Fix the Forth boot word if the current package is not /chosen under SPARC32.
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Sat May 7 01:01:02 CEST 2011
Ensure that we deselect the current package before defining the
platform-specific boot words so that they are created in the global dictionary
and not the current instance dictionary.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
---
openbios-devel/arch/sparc32/openbios.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/openbios-devel/arch/sparc32/openbios.c b/openbios-devel/arch/sparc32/openbios.c
index 1d8842a..a87d2ad 100644
--- a/openbios-devel/arch/sparc32/openbios.c
+++ b/openbios-devel/arch/sparc32/openbios.c
@@ -922,12 +922,15 @@ arch_init( void )
push_str("boot-device");
fword("property");
+ device_end();
+
+ bind_func("platform-boot", boot );
+ bind_func("(go)", go );
+
/* Set up other properties */
push_str("/chosen");
fword("find-device");
- bind_func("platform-boot", boot );
- bind_func("(go)", go );
setup_uuid();
}
--
1.7.2.5
More information about the OpenBIOS
mailing list