ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp
(Generate patch)

Comparing SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp (file contents):
Revision 1.22 by gbeauche, 2003-12-04T23:37:38Z vs.
Revision 1.23 by gbeauche, 2003-12-05T13:37:56Z

# Line 73 | Line 73 | static void enter_mon(void)
73   #endif
74   }
75  
76 + // From main_*.cpp
77 + extern uintptr SignalStackBase();
78 +
79   // PowerPC EmulOp to exit from emulation looop
80   const uint32 POWERPC_EXEC_RETURN = POWERPC_EMUL_OP | 1;
81  
# Line 268 | Line 271 | void sheepshaver_cpu::interrupt(uint32 e
271   #endif
272  
273          // Initialize stack pointer to SheepShaver alternate stack base
274 <        SheepArray<64> stack_area;
272 <        gpr(1) = stack_area.addr();
274 >        gpr(1) = SignalStackBase() - 64;
275  
276          // Build trampoline to return from interrupt
277          SheepVar32 trampoline = POWERPC_EXEC_RETURN;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines