Author: mcayland Date: 2010-01-02 13:43:59 +0100 (Sat, 02 Jan 2010) New Revision: 657
Modified: trunk/openbios-devel/forth/admin/nvram.fs Log: Add Stefan's hack for load-base to allow it to be referenced as a value from within Fcode bootloaders such as Milax.
Modified: trunk/openbios-devel/forth/admin/nvram.fs =================================================================== --- trunk/openbios-devel/forth/admin/nvram.fs 2010-01-01 18:21:18 UTC (rev 656) +++ trunk/openbios-devel/forth/admin/nvram.fs 2010-01-02 12:43:59 UTC (rev 657) @@ -301,7 +301,7 @@ \ 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 @@ [IFDEF] CONFIG_SPARC64 \ ---- SPARC64 ---- s" 4000000" s" load-base" int-config +s" false" s" little-endian?" bool-config [THEN]
\ --- ??? --- @@ -371,6 +372,12 @@ ['] fcode-debug? to _fcode-debug? ['] diag-switch? to _diag-switch?
+\ Hack for load-base: it seems that some Sun bootloaders try +\ and execute "<value> 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 ;