/[cebix]/SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp
ViewVC logotype

Diff of /SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by gbeauche, Thu May 20 11:05:30 2004 UTC revision 1.40 by gbeauche, Thu May 20 11:47:27 2004 UTC
# Line 1100  void sheepshaver_cpu::handle_interrupt(v Line 1100  void sheepshaver_cpu::handle_interrupt(v
1100          if (InterruptFlags == 0)          if (InterruptFlags == 0)
1101                  return;                  return;
1102    
1103            // Current interrupt nest level
1104            static int interrupt_depth = 0;
1105            ++interrupt_depth;
1106    
1107          // Disable MacOS stack sniffer          // Disable MacOS stack sniffer
1108          WriteMacInt32(0x110, 0);          WriteMacInt32(0x110, 0);
1109    
# Line 1116  void sheepshaver_cpu::handle_interrupt(v Line 1120  void sheepshaver_cpu::handle_interrupt(v
1120          case MODE_NATIVE:          case MODE_NATIVE:
1121                  // 68k emulator inactive, in nanokernel?                  // 68k emulator inactive, in nanokernel?
1122                  assert(current_cpu == main_cpu);                  assert(current_cpu == main_cpu);
1123                  if (gpr(1) != KernelDataAddr) {                  if (gpr(1) != KernelDataAddr && interrupt_depth == 1) {
1124                          interrupt_context ctx(this, "PowerPC mode");                          interrupt_context ctx(this, "PowerPC mode");
1125    
1126                          // Prepare for 68k interrupt level 1                          // Prepare for 68k interrupt level 1
# Line 1171  void sheepshaver_cpu::handle_interrupt(v Line 1175  void sheepshaver_cpu::handle_interrupt(v
1175                  break;                  break;
1176  #endif  #endif
1177          }          }
1178    
1179            // We are done with this interrupt
1180            --interrupt_depth;
1181  }  }
1182    
1183  static void get_resource(void);  static void get_resource(void);

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15