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.43 by gbeauche, 2006-05-06T10:30:00Z vs.
Revision 1.44 by gbeauche, 2006-05-14T13:48:05Z

# Line 1465 | Line 1465 | static bool patch_nanokernel(void)
1465          static const uint8 pg_lookup_dat[] = {0x7e, 0x0f, 0x40, 0x6e, 0x81, 0xc1, 0x06, 0xa4, 0x7e, 0x00, 0x71, 0x20};
1466          if ((base = find_rom_data(0x310000, 0x320000, pg_lookup_dat, sizeof(pg_lookup_dat))) == 0) return false;
1467          D(bug("fe0a_pgtb_lookup %08lx\n", base - 12));
1468 <        lp = (uint32 *)(ROM_BASE + base - 12);
1468 >        lp = (uint32 *)(ROMBaseHost + base - 12);
1469          if (ntohl(lp[0]) != 0x81e106b0)                         // lwz  r15,$06b0(r1)
1470                  return false;
1471          lp[0] = htonl(0x54906026);                                      // slwi r16,r4,12
# Line 1475 | Line 1475 | static bool patch_nanokernel(void)
1475          static const uint8 krnl_write_dat[] = {0x38, 0xe0, 0x00, 0x01, 0x7e, 0x10, 0x38, 0x78, 0x92, 0x0f, 0x00, 0x00};
1476          if ((base = find_rom_data(0x310000, 0x320000, krnl_write_dat, sizeof(krnl_write_dat))) == 0) return false;
1477          D(bug("fe0a_krnl_write %08lx\n", base));
1478 <        lp = (uint32 *)(ROM_BASE + base);
1478 >        lp = (uint32 *)(ROMBaseHost + base);
1479          lp[2] = htonl(POWERPC_NOP);
1480  
1481   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines