|
|
| version 1.24, 2011/12/21 18:07:57 | version 1.25, 2012/01/08 18:33:58 |
|---|---|
| Line 146 change_pm(BOOL onoff) | Line 146 change_pm(BOOL onoff) |
| CPU_STAT_SREG(i).dpl = 0; | CPU_STAT_SREG(i).dpl = 0; |
| } | } |
| #endif | #endif |
| VERBOSE(("Entering to Protected-Mode...")); | VERBOSE(("change_pm: Entering to Protected-Mode...")); |
| } else { | } else { |
| VERBOSE(("Leaveing from Protected-Mode...")); | VERBOSE(("change_pm: Leaveing from Protected-Mode...")); |
| } | } |
| CPU_INST_OP32 = CPU_INST_AS32 = | CPU_INST_OP32 = CPU_INST_AS32 = |
| Line 164 change_pg(BOOL onoff) | Line 164 change_pg(BOOL onoff) |
| { | { |
| if (onoff) { | if (onoff) { |
| VERBOSE(("Entering to Paging-Mode...")); | VERBOSE(("change_pg: Entering to Paging-Mode...")); |
| } else { | } else { |
| VERBOSE(("Leaveing from Paging-Mode...")); | VERBOSE(("change_pg: Leaveing from Paging-Mode...")); |
| } | } |
| CPU_STAT_PAGING = onoff; | CPU_STAT_PAGING = onoff; |
| Line 179 change_vm(BOOL onoff) | Line 179 change_vm(BOOL onoff) |
| CPU_STAT_VM86 = onoff; | CPU_STAT_VM86 = onoff; |
| if (onoff) { | if (onoff) { |
| VERBOSE(("Entering to Virtual-8086-Mode...")); | VERBOSE(("change_vm: Entering to Virtual-8086-Mode...")); |
| for (i = 0; i < CPU_SEGREG_NUM; i++) { | for (i = 0; i < CPU_SEGREG_NUM; i++) { |
| CPU_STAT_SREGLIMIT(i) = 0xffff; | CPU_STAT_SREGLIMIT(i) = 0xffff; |
| LOAD_SEGREG(i, CPU_REGS_SREG(i)); | LOAD_SEGREG(i, CPU_REGS_SREG(i)); |
| Line 190 change_vm(BOOL onoff) | Line 190 change_vm(BOOL onoff) |
| CPU_STAT_SS32 = 0; | CPU_STAT_SS32 = 0; |
| set_cpl(3); | set_cpl(3); |
| } else { | } else { |
| VERBOSE(("Leaveing from Virtual-8086-Mode...")); | VERBOSE(("change_vm: Leaveing from Virtual-8086-Mode...")); |
| } | } |
| } | } |