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

Comparing SheepShaver/src/rom_patches.cpp (file contents):
Revision 1.38 by gbeauche, 2004-12-16T22:59:38Z vs.
Revision 1.39 by gbeauche, 2004-12-16T23:14:25Z

# Line 1413 | Line 1413 | static bool patch_nanokernel(void)
1413          *lp = htonl(POWERPC_NOP);
1414  
1415          // Disable suspend (FE0F opcode)
1416 <        // TODO: really suspend SheepShaver
1416 >        // TODO: really suspend SheepShaver?
1417          static const uint8 suspend_dat[] = {0x7c, 0x88, 0x68, 0x39, 0x41, 0x9d};
1418          if ((base = find_rom_data(0x315000, 0x316000, suspend_dat, sizeof(suspend_dat))) == 0) return false;
1419          D(bug("suspend %08lx\n", base));
1420 <        lp = (uint32 *)(ROMBaseHost + base + 8);
1420 >        lp = (uint32 *)(ROMBaseHost + base + 4);
1421          *lp = htonl((ntohl(*lp) & 0xffff) | 0x48000000);        // bgt -> b
1422  
1423          // Patch trap return routine

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines