From 2fccb9dac75e6167b75c0bae30d63fae54c312f9 Mon Sep 17 00:00:00 2001 From: b1ackmai1er Date: Sun, 1 Dec 2024 09:12:54 +0800 Subject: [PATCH] MBC recovery mode default, document corrections --- Source/Doc/SystemGuide.md | 6 +++--- Source/HBIOS/cfg_MBC.asm | 1 + Source/HBIOS/std.asm | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Doc/SystemGuide.md b/Source/Doc/SystemGuide.md index f74d6e04..7481fd2e 100644 --- a/Source/Doc/SystemGuide.md +++ b/Source/Doc/SystemGuide.md @@ -502,8 +502,8 @@ and control is passed to the Boot Loader. ## Boot Recovery To assist users when driver faults or misconfiguration causes a boot -failure, RomWBW supports a limited recovery cabability. This is -acheived by allowing the user to reboot their machine, loading +failure, RomWBW supports a limited recovery capability. This is +achieved by allowing the user to reboot their machine, loading a minimal driver set. Implementation of this feature requires a hardware input "BOOT RECOVERY" button to be available and appropriate software configuration to be completed in the HBIOS. @@ -516,7 +516,7 @@ Typically this would be: Serial communication, RAM disk and parallel port IDE interface drivers. Platforms supporting this option currently are the MBC, Duodyne and -latter version of the ECB-SBC-V3. +latter version of the SBC. # Driver Model diff --git a/Source/HBIOS/cfg_MBC.asm b/Source/HBIOS/cfg_MBC.asm index b523be30..9d1ff851 100644 --- a/Source/HBIOS/cfg_MBC.asm +++ b/Source/HBIOS/cfg_MBC.asm @@ -54,6 +54,7 @@ HBIOS_MUTEX .SET FALSE ; ENABLE REENTRANT CALLS TO HBIOS (ADDS OVERHEAD) USELZSA2 .SET TRUE ; ENABLE FONT COMPRESSION TICKFREQ .SET 50 ; DESIRED PERIODIC TIMER INTERRUPT FREQUENCY (HZ) ; +BT_REC_TYPE .SET BT_REC_SBC1B ; ENABLE RECOVERY MODE BUTTON BOOT_TIMEOUT .SET -1 ; AUTO BOOT TIMEOUT IN SECONDS, -1 TO DISABLE, 0 FOR IMMEDIATE BOOT_DELAY .SET 0 ; FIXED BOOT DELAY IN SECONDS PRIOR TO CONSOLE OUTPUT AUTOCON .SET TRUE ; ENABLE CONSOLE TAKEOVER AT LOADER PROMPT diff --git a/Source/HBIOS/std.asm b/Source/HBIOS/std.asm index e152b397..b309d7af 100644 --- a/Source/HBIOS/std.asm +++ b/Source/HBIOS/std.asm @@ -103,7 +103,7 @@ BT_AUTO .EQU 2 ; AUTO SELECT BOOT_DEFAULT AFTER BOOT_TIMEOUT BT_REC_NONE .EQU 0 ; NO RECOVERY MODE BT_REC_FORCE .EQU 1 ; FORCE BOOT RECOVERY MODE BT_REC_SBCB0 .EQU 2 ; ECB-SBCV2 - BIT 0 RTC HIGH -BT_REC_SBC1B .EQU 3 ; ECB-SBCV2 - 1-BIT IO PORT +BT_REC_SBC1B .EQU 3 ; ECB-SBCV2/MBC - 1-BIT IO PORT BT_REC_SBCRI .EQU 4 ; ECB-SBCV2 - 16550 UART RING INDICATOR LINE BT_REC_DUORI .EQU 5 ; DUO MULTI I/O - TL16C2552FN UART RING INDICATOR LINE ;