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.13 by gbeauche, 2003-10-05T23:49:19Z vs.
Revision 1.14 by gbeauche, 2003-10-06T21:00:48Z

# Line 725 | Line 725 | bool PatchROM(void)
725          else
726                  return false;
727  
728 +        // Check that other ROM addresses point to really free regions
729 +        printf("%08x\n", ntohl(*(uint32 *)(ROM_BASE + CHECK_LOAD_PATCH_SPACE)));
730 +        if (ntohl(*(uint32 *)(ROM_BASE + CHECK_LOAD_PATCH_SPACE)) != 0x6b636b63)
731 +                return false;
732 +        if (ntohl(*(uint32 *)(ROM_BASE + PUT_SCRAP_PATCH_SPACE)) != 0x6b636b63)
733 +                return false;
734 +        if (ntohl(*(uint32 *)(ROM_BASE + GET_SCRAP_PATCH_SPACE)) != 0x6b636b63)
735 +                return false;
736 +        if (ntohl(*(uint32 *)(ROM_BASE + ADDR_MAP_PATCH_SPACE)) != 0x6b636b63)
737 +                return false;
738 +
739          // Apply patches
740          if (!patch_nanokernel_boot()) return false;
741          if (!patch_68k_emul()) return false;
# Line 2230 | Line 2241 | void InstallDrivers(void)
2241          uint8 pb[SIZEOF_IOParam];
2242  
2243          // Install floppy driver
2244 <        if (ROMType == ROMTYPE_NEWWORLD) {
2244 >        if (ROMType == ROMTYPE_NEWWORLD || ROMType == ROMTYPE_GOSSAMER) {
2245  
2246 <                // Force installation of floppy driver with NewWorld ROMs
2246 >                // Force installation of floppy driver with NewWorld and Gossamer ROMs
2247                  r.a[0] = ROM_BASE + sony_offset;
2248                  r.d[0] = (uint32)SonyRefNum;
2249                  Execute68kTrap(0xa43d, &r);             // DrvrInstallRsrvMem()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines