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

Comparing BasiliskII/src/disk.cpp (file contents):
Revision 1.5 by cebix, 2000-04-10T18:52:20Z vs.
Revision 1.6 by cebix, 2000-07-14T21:29:08Z

# Line 90 | Line 90 | static DriveInfo *first_drive_info;
90   // Icon address (Mac address space, set by PatchROM())
91   uint32 DiskIconAddr;
92  
93 // Number of ticks between checks for disk insertion
94 const int driver_delay = 120;
95
93   // Flag: Control(accRun) has been called, interrupt routine is now active
94   static bool acc_run_called = false;
95  
# Line 495 | Line 492 | int16 DiskStatus(uint32 pb, uint32 dce)
492  
493  
494   /*
495 < *  Driver interrupt routine - check for volumes to be mounted
495 > *  Driver interrupt routine (1Hz) - check for volumes to be mounted
496   */
497  
498   void DiskInterrupt(void)
499   {
503        static int tick_count = 0;
500          if (!acc_run_called)
501                  return;
502  
503 <        tick_count++;
508 <        if (tick_count > driver_delay) {
509 <                tick_count = 0;
510 <                mount_mountable_volumes();
511 <        }
503 >        mount_mountable_volumes();
504   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines