From 301d419d4c6155f1a1c6bec9ccee03845e862ca1 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sat, 2 Jan 2010 12:43:59 +0000 Subject: [PATCH] Add Stefan's hack for load-base to allow it to be referenced as a value from within Fcode bootloaders such as Milax. git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@657 f158a5a8-5612-0410-a976-696ce0be7e32 --- forth/admin/nvram.fs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/forth/admin/nvram.fs b/forth/admin/nvram.fs index aba8db4..394eeba 100644 --- a/forth/admin/nvram.fs +++ b/forth/admin/nvram.fs @@ -301,7 +301,7 @@ constant config-info.size \ NVRAM variables \ -------------------------------------------------------- \ fcode-debug? input-device output-device -s" true" s" auto-boot?" bool-config \ 7.4.3.5 +s" false" s" auto-boot?" bool-config \ 7.4.3.5 s" boot" s" boot-command" str-config \ 7.4.3.5 s" " s" boot-file" str-config \ 7.4.3.5 s" false" s" diag-switch?" bool-config \ 7.4.3.5 @@ -359,6 +359,7 @@ s" false" s" ttyb-rts-dtr-off" bool-config [IFDEF] CONFIG_SPARC64 \ ---- SPARC64 ---- s" 4000000" s" load-base" int-config +s" false" s" little-endian?" bool-config [THEN] \ --- ??? --- @@ -371,6 +372,12 @@ s" " s" boot-args" str-config \ ??? ['] fcode-debug? to _fcode-debug? ['] diag-switch? to _diag-switch? +\ Hack for load-base: it seems that some Sun bootloaders try +\ and execute " to load-base" which will only work if +\ load-base is value. Hence we redefine load-base here as a +\ value using its normal default. +load-base value load-base + : release-load-area drop ;