To recalibrate the floppy drive I do:
Code: Select all
...
FdcMotorOn(fdc);
while(fdc->op != 0);
...
Code: Select all
00075643171i[FDD ] controller reset in software
00075769487e[CPU0 ] check_cs(0x0008): not a valid code segment !
00075769487e[CPU0 ] interrupt(): not accessable or not code segment cs=0x0008
00075769487i[CPU0 ] CPU is in protected mode (active)
00075769487i[CPU0 ] CS.d_b = 32 bit
00075769487i[CPU0 ] SS.d_b = 32 bit
00075769487i[CPU0 ] EFER = 0x00000000
00075769487i[CPU0 ] | RAX=0000000000000001 RBX=0000000000000000
00075769487i[CPU0 ] | RCX=0000000000000730 RDX=00000000000003f2
00075769487i[CPU0 ] | RSP=00000000c004af88 RBP=00000000c004afac
00075769487i[CPU0 ] | RSI=00000000d0000560 RDI=00000000e0002031
00075769487i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
00075769487i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
00075769487i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
00075769487i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
00075769487i[CPU0 ] | IOPL=0 id vip vif ac vm RF nt of df if tf SF zf AF pf cf
00075769487i[CPU0 ] | SEG selector base limit G D
00075769487i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00075769487i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00075769487i[CPU0 ] | MSR_FS_BASE:0000000000000000
00075769487i[CPU0 ] | MSR_GS_BASE:0000000000000000
00075769487i[CPU0 ] | RIP=00000000c0000149 (00000000c0000149)
00075769487i[CPU0 ] | CR0=0xe0010011 CR1=0x0 CR2=0x00000000d0004490
00075769487i[CPU0 ] | CR3=0x00003000 CR4=0x00000280
00075769487i[CPU0 ] >> iretd : CF
00075769487p[CPU0 ] >>PANIC<< exception(): 3rd (13) exception with no resolution
Code: Select all
...
FdcMotorOn(fdc);
//while(fdc->op != 0);
...
Code: Select all
00102883897i[FDD ] controller reset in software
00131377500p[XGUI ] >>PANIC<< POWER button turned off.
00131377500i[CPU0 ] CPU is in protected mode (active)
00131377500i[CPU0 ] CS.d_b = 32 bit
00131377500i[CPU0 ] SS.d_b = 32 bit
00131377500i[CPU0 ] EFER = 0x00000000
00131377500i[CPU0 ] | RAX=0000000000000000 RBX=00000000c00514b0
00131377500i[CPU0 ] | RCX=0000000000000780 RDX=0000000000000000
00131377500i[CPU0 ] | RSP=00000000c004afb4 RBP=00000000c004afdc
00131377500i[CPU0 ] | RSI=00000000e000201d RDI=00000000e0002031
00131377500i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
00131377500i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
00131377500i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
00131377500i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
00131377500i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df IF tf sf ZF af PF cf
00131377500i[CPU0 ] | SEG selector base limit G D
00131377500i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00131377500i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 000fffff 1 1
00131377500i[CPU0 ] | MSR_FS_BASE:0000000000000000
00131377500i[CPU0 ] | MSR_GS_BASE:0000000000000000
00131377500i[CPU0 ] | RIP=00000000c00019aa (00000000c00019aa)
00131377500i[CPU0 ] | CR0=0xe0010011 CR1=0x0 CR2=0x00000000d0004490
00131377500i[CPU0 ] | CR3=0x00003000 CR4=0x00000280
Code: Select all
00075769487e[CPU0 ] check_cs(0x0008): not a valid code segment !
00075769487e[CPU0 ] interrupt(): not accessable or not code segment cs=0x0008
...
00075769487i[CPU0 ] >> iretd : CF
00075769487p[CPU0 ] >>PANIC<< exception(): 3rd (13) exception with no resolution