summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Ruppert <info@vruppert.de>2005-05-20 16:06:52 +0000
committerVolker Ruppert <info@vruppert.de>2005-05-20 16:06:52 +0000
commita7b98ce3231b7af6e26b982b79999cda03b4295a (patch)
tree0263c968e92627b42156a029f1b28b779833f536
parent36d5a7f05f9af7e95c8c0e18975121786df8e4cc (diff)
- fixed return value for the default case in the VBE section (non-debug mode)
- removed unused macros HALT and PANIC_PORT
-rw-r--r--vbe.c17
-rw-r--r--vgabios.c2
2 files changed, 1 insertions, 18 deletions
diff --git a/vbe.c b/vbe.c
index 075ec99..f80402f 100644
--- a/vbe.c
+++ b/vbe.c
@@ -117,23 +117,6 @@ _vbebios_mode_list:
.word VBE_VESA_MODE_END_OF_LIST
#endif
-ASM_END
-
-// from rombios.c
-#define PANIC_PORT 0x501
-
-ASM_START
-MACRO HALT
- ;; the HALT macro is called with the line number of the HALT call.
- ;; The line number is then sent to the PANIC_PORT, causing Bochs to
- ;; print a BX_PANIC message. This will normally halt the simulation
- ;; with a message such as "BIOS panic at rombios.c, line 4091".
- ;; However, users can choose to make panics non-fatal and continue.
- mov dx,#PANIC_PORT
- mov ax,#?1
- out dx,ax
-MEND
-
; DISPI ioport functions
dispi_get_id:
diff --git a/vgabios.c b/vgabios.c
index 0931bb7..2c9cf37 100644
--- a/vgabios.c
+++ b/vgabios.c
@@ -734,8 +734,8 @@ static void int10_func(DI, SI, BP, SP, BX, DX, CX, AX, DS, ES, FLAGS)
// function failed
AX=0x100;
break;
-#ifdef DEBUG
default:
+#ifdef DEBUG
unknown();
#endif
// function failed