/[cebix]/SheepShaver/src/rom_patches.cpp
ViewVC logotype

Diff of /SheepShaver/src/rom_patches.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by gbeauche, Sat May 17 08:42:34 2003 UTC revision 1.5 by gbeauche, Wed May 21 18:57:17 2003 UTC
# Line 2135  void InstallDrivers(void) Line 2135  void InstallDrivers(void)
2135          M68kRegisters r;          M68kRegisters r;
2136          uint8 pb[SIZEOF_IOParam];          uint8 pb[SIZEOF_IOParam];
2137    
2138            // Install floppy driver
2139            if (ROMType == ROMTYPE_NEWWORLD) {
2140    
2141                    // Force installation of floppy driver with NewWorld ROMs
2142                    r.a[0] = ROM_BASE + sony_offset;
2143                    r.d[0] = (uint32)SonyRefNum;
2144                    Execute68kTrap(0xa43d, &r);             // DrvrInstallRsrvMem()
2145                    r.a[0] = ReadMacInt32(ReadMacInt32(0x11c) + ~SonyRefNum * 4);   // Get driver handle from Unit Table
2146                    Execute68kTrap(0xa029, &r);             // HLock()
2147                    uint32 dce = ReadMacInt32(r.a[0]);
2148                    WriteMacInt32(dce + dCtlDriver, ROM_BASE + sony_offset);
2149                    WriteMacInt16(dce + dCtlFlags, SonyDriverFlags);
2150            }
2151    
2152          // Open .Sony driver          // Open .Sony driver
2153          WriteMacInt8((uint32)pb + ioPermssn, 0);          WriteMacInt8((uint32)pb + ioPermssn, 0);
2154          WriteMacInt32((uint32)pb + ioNamePtr, (uint32)"\005.Sony");          WriteMacInt32((uint32)pb + ioNamePtr, (uint32)"\005.Sony");

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.17