923f7975fe
o too many changes to mention specifically, but amongst them: - better error reporting - openbsd boots, freebsd boots - new 'term' flavor, I added a textmode interface, the only drawback is that control-c is intercepted, and you must kill -9 it from another tty if it doesn't exit normally - new flavors: - debugger -> debug (for shortness) - i386 - pci - smp - net (compiles, does not yet provide networking, if anyone wants to help, I'd be ELATED to have this fixed!) - no_x11 (made it actually work) - term (make sure to use 'log: /dev/null' or something else on the cmdline, otherwise, debugging and the screen will start getting quite confusing!) - better error reporting (and no error reporting where it is not necessary; a typicall boot of cdrom28.fs is a screenful of output now) - in general, if the hardware reaches an unknown state, fail gracefully instead of calling exit(1) .. are we trying to work or are we trying to .. fail? I like working myself.
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
$OpenBSD: patch-cpu_flag_ctrl_cc,v 1.1 2001/02/02 16:59:08 todd Exp $
|
|
--- cpu/flag_ctrl.cc.orig Sat Mar 25 21:39:08 2000
|
|
+++ cpu/flag_ctrl.cc Tue Oct 17 12:04:01 2000
|
|
@@ -70,7 +70,7 @@ BX_CPU_C::CLI(BxInstruction_t *i)
|
|
#if BX_CPU_LEVEL >= 2
|
|
if (protected_mode()) {
|
|
if (CPL > IOPL) {
|
|
- //bx_printf("CLI: CPL > IOPL\n"); /* ??? */
|
|
+ //bio->printf("CLI: CPL > IOPL\n"); /* ??? */
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|
|
@@ -78,7 +78,7 @@ BX_CPU_C::CLI(BxInstruction_t *i)
|
|
#if BX_CPU_LEVEL >= 3
|
|
else if (v8086_mode()) {
|
|
if (IOPL != 3) {
|
|
- //bx_printf("CLI: IOPL != 3\n"); /* ??? */
|
|
+ //bio->printf("CLI: IOPL != 3\n"); /* ??? */
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|
|
@@ -95,7 +95,7 @@ BX_CPU_C::STI(BxInstruction_t *i)
|
|
#if BX_CPU_LEVEL >= 2
|
|
if (protected_mode()) {
|
|
if (CPL > IOPL) {
|
|
- //bx_printf("STI: CPL > IOPL\n"); /* ??? */
|
|
+ //bio->printf("STI: CPL > IOPL\n"); /* ??? */
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|
|
@@ -103,7 +103,7 @@ BX_CPU_C::STI(BxInstruction_t *i)
|
|
#if BX_CPU_LEVEL >= 3
|
|
else if (v8086_mode()) {
|
|
if (IOPL != 3) {
|
|
- //bx_printf("STI: IOPL != 3\n"); /* ??? */
|
|
+ //bio->printf("STI: IOPL != 3\n"); /* ??? */
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|
|
@@ -163,12 +163,12 @@ BX_CPU_C::POPF_Fv(BxInstruction_t *i)
|
|
#if BX_CPU_LEVEL >= 3
|
|
if (v8086_mode()) {
|
|
if (IOPL < 3) {
|
|
- //bx_printf("popf_fv: IOPL < 3\n");
|
|
+ //bio->printf("popf_fv: IOPL < 3\n");
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|
|
if (i->os_32) {
|
|
- bx_panic("POPFD(): not supported in virtual mode\n");
|
|
+ bio->panic("POPFD(): not supported in virtual mode\n");
|
|
exception(BX_GP_EXCEPTION, 0, 0);
|
|
return;
|
|
}
|