cpu::trap: corrected kernel_mode detection
This commit is contained in:
parent
0586b78f97
commit
bbd11b82b5
1 changed files with 1 additions and 1 deletions
2
cpu.cpp
2
cpu.cpp
|
@ -1599,7 +1599,7 @@ void cpu::trap(uint16_t vector, const int new_ipl, const bool is_interrupt)
|
|||
try {
|
||||
processing_trap_depth++;
|
||||
|
||||
bool kernel_mode = psw >> 14; // TODO wrong?
|
||||
bool kernel_mode = !(psw >> 14);
|
||||
|
||||
if (processing_trap_depth >= 2) {
|
||||
DOLOG(debug, true, "Trap depth %d", processing_trap_depth);
|
||||
|
|
Loading…
Add table
Reference in a new issue