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

Comparing SheepShaver/src/main.cpp (file contents):
Revision 1.2 by gbeauche, 2005-01-30T21:48:19Z vs.
Revision 1.3 by gbeauche, 2005-02-27T21:52:05Z

# Line 232 | Line 232 | bool InitAll(void)
232          WriteMacInt16(XLM_EXEC_RETURN_OPCODE, M68K_EXEC_RETURN);                // For Execute68k() (RTS from the executed 68k code will jump here and end 68k mode)
233          WriteMacInt32(XLM_ZERO_PAGE, SheepMem::ZeroPage());                             // Pointer to read-only page with all bits set to 0
234   #if !EMULATED_PPC
235 <        WriteMacInt32(XLM_TOC, (uint32)TOC);                                                            // TOC pointer of emulator
235 > #ifdef SYSTEM_CLOBBERS_R2
236 >        WriteMacInt32(XLM_TOC, (uint32)TOC);                                                    // TOC pointer of emulator
237 > #endif
238 > #ifdef SYSTEM_CLOBBERS_R13
239 >        WriteMacInt32(XLM_R13, (uint32)R13);                                                    // TLS register
240 > #endif
241   #endif
242          WriteMacInt32(XLM_ETHER_INIT, NativeFunction(NATIVE_ETHER_INIT));       // DLPI ethernet driver functions
243          WriteMacInt32(XLM_ETHER_TERM, NativeFunction(NATIVE_ETHER_TERM));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines