6 /* #define DEBUG_INT */
10 void IntBarf(int i
, struct sigcontext_struct
*context
);
12 int do_int13(struct sigcontext_struct
*context
)
15 case 0x00: /* RESET DISK SYSTEM */
16 case 0x04: /* VERIFY DISK SECTOR(S) */
20 case 0x05: /* FORMAT TRACK */
25 case 0x06: /* FORMAT TRACK AND SET BAD SECTOR FLAGS */
26 case 0x07: /* FORMAT DRIVE STARTING AT GIVEN TRACK */
30 case 0x08: /* GET DRIVE PARAMETERS */
31 AH
= (DL
& 0x80) ? 0x07 : 0x01;
35 case 0x09: /* INITIALIZE CONTROLLER WITH DRIVE PARAMETERS */
36 case 0x0c: /* SEEK TO CYLINDER */
37 case 0x0d: /* RESET HARD DISKS */
38 case 0x10: /* CHECK IF DRIVE READY */
39 case 0x11: /* RECALIBRATE DRIVE */
40 case 0x14: /* CONTROLLER INTERNAL DIAGNOSTIC */
44 case 0x0e: /* READ SECTOR BUFFER (XT only) */
45 case 0x0f: /* WRITE SECTOR BUFFER (XT only) */
46 case 0x12: /* CONTROLLER RAM DIAGNOSTIC (XT,PS) */
47 case 0x13: /* DRIVE DIAGNOSTIC (XT,PS) */
53 IntBarf(0x13, context
);