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.40 by gbeauche, 2005-01-30T21:48:19Z vs.
Revision 1.41 by gbeauche, 2005-03-05T15:44:03Z

# Line 2344 | Line 2344 | void InstallDrivers(void)
2344          SheepArray<SIZEOF_IOParam> pb_var;
2345          const uintptr pb = pb_var.addr();
2346  
2347 + #if DISABLE_SCSI
2348 +        // Setup fake SCSI Globals
2349 +        r.d[0] = 0x1000;
2350 +        Execute68kTrap(0xa71e, &r);             // NewPtrSysClear()
2351 +        uint32 scsi_globals = r.a[0];
2352 +        D(bug("Fake SCSI globals at %08lx\n", scsi_globals));
2353 +        WriteMacInt32(0xc0c, scsi_globals);     // Set SCSIGlobals
2354 + #endif
2355 +
2356          // Install floppy driver
2357          if (ROMType == ROMTYPE_NEWWORLD || ROMType == ROMTYPE_GOSSAMER) {
2358  
# Line 2358 | Line 2367 | void InstallDrivers(void)
2367                  WriteMacInt16(dce + dCtlFlags, SonyDriverFlags);
2368          }
2369  
2361 #if DISABLE_SCSI && HAVE_SIGSEGV_SKIP_INSTRUCTION
2362        // Fake SCSIGlobals
2363        WriteMacInt32(0xc0c, SheepMem::ZeroPage());
2364 #endif
2365
2370          // Open .Sony driver
2371          SheepString sony_str("\005.Sony");
2372          WriteMacInt8(pb + ioPermssn, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines