|
|
| version 1.20, 2004/03/25 08:51:24 | version 1.22, 2005/02/08 09:57:26 |
|---|---|
| Line 33 | Line 33 |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "dmap.h" | #include "dmax86.h" |
| #include "bios.h" | #include "bios.h" |
| #if defined(IA32_REBOOT_ON_PANIC) | #if defined(IA32_REBOOT_ON_PANIC) |
| #include "pccore.h" | #include "pccore.h" |
| Line 131 ia32(void) | Line 131 ia32(void) |
| do { | do { |
| exec_1step(); | exec_1step(); |
| if (dmac.working) { | if (dmac.working) { |
| dmap(); | dmax86(); |
| } | } |
| } while (CPU_REMCLOCK > 0); | } while (CPU_REMCLOCK > 0); |
| #else | #else |
| Line 142 ia32(void) | Line 142 ia32(void) |
| CPU_DR6 |= CPU_DR6_BS; | CPU_DR6 |= CPU_DR6_BS; |
| INTERRUPT(1, TRUE, FALSE, 0); | INTERRUPT(1, TRUE, FALSE, 0); |
| } | } |
| dmap(); | dmax86(); |
| } while (CPU_REMCLOCK > 0); | } while (CPU_REMCLOCK > 0); |
| } else if (dmac.working) { | } else if (dmac.working) { |
| do { | do { |
| exec_1step(); | exec_1step(); |
| dmap(); | dmax86(); |
| } while (CPU_REMCLOCK > 0); | } while (CPU_REMCLOCK > 0); |
| } else { | } else { |
| do { | do { |
| Line 189 ia32_step(void) | Line 189 ia32_step(void) |
| } | } |
| #endif | #endif |
| if (dmac.working) { | if (dmac.working) { |
| dmap(); | dmax86(); |
| } | } |
| } while (CPU_REMCLOCK > 0); | } while (CPU_REMCLOCK > 0); |
| } | } |
| Line 281 ia32_bioscall(void) | Line 281 ia32_bioscall(void) |
| adrs = (CPU_EIP - 1) + CPU_STAT_CS_BASE; | adrs = (CPU_EIP - 1) + CPU_STAT_CS_BASE; |
| #endif | #endif |
| if ((adrs >= 0xf8000) && (adrs < 0x100000)) { | if ((adrs >= 0xf8000) && (adrs < 0x100000)) { |
| biosfunc(adrs); | if (biosfunc(adrs)) { |
| CPU_PREFETCH_CLEAR(); | |
| } | |
| if (!CPU_STAT_PM || CPU_STAT_VM86) { | if (!CPU_STAT_PM || CPU_STAT_VM86) { |
| CPU_SET_SEGREG(CPU_ES_INDEX, CPU_ES); | CPU_SET_SEGREG(CPU_ES_INDEX, CPU_ES); |
| CPU_SET_SEGREG(CPU_CS_INDEX, CPU_CS); | CPU_SET_SEGREG(CPU_CS_INDEX, CPU_CS); |