OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Feb 25, 2021 7:46 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: floppy re calibration not getting irq6
PostPosted: Wed Nov 11, 2020 4:07 am 
Offline
Member
Member

Joined: Sat Aug 18, 2018 8:44 pm
Posts: 113
In the init_floppy routine, trying to re-calibrate... I am using the first drive...
so I send the cmd and drive # to the FDC, got stuck in the infinite loop that is
supposed to exit upon irq6 interrupt... what could go wrong here?


Top
 Profile  
 
 Post subject: Re: floppy re calibration not getting irq6
PostPosted: Wed Nov 11, 2020 11:43 am 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 845
ITchimp wrote:
what could go wrong here?
Anything that can go wrong with IRQs normally: IRQ not enabled in the sender, IRQ masked in the PIC/APIC, interrupt flag not set, IDTR points to Nirvana, IDT gate for the interrupt is garbled. Try to exclude some of these possibilities (e.g. if IDTR was set wrong, then no other interrupt would work, either).

_________________
Thou hast outraged, not insulted me, sir; but for that I ask thee not to beware of Starbuck; thou wouldst but laugh; but let Ahab beware of Ahab; beware of thyself, old man.


Top
 Profile  
 
 Post subject: Re: floppy re calibration not getting irq6
PostPosted: Thu Nov 12, 2020 2:41 am 
Offline
Member
Member

Joined: Sat Aug 18, 2018 8:44 pm
Posts: 113
I have made a few checks. eflag's irq enable bit is on...
also the previous times the interrupt and irq routine works... (as I reset FDC by
writing a zero to DOR)...
any suggestions??
My code snippet below, I got stuck in the while loop
Code:
int st0, cy1;
    floppy_motor(1);
    print("start the timer \n");
    //magic();
    //exec(run_floppy_timer);
   
    int i=0;
    for (i=0;i<10;i++){
        floppy_write_cmd(RECALIBERATE); // 7
        floppy_write_cmd(1); // select first drive
        //irq6 = 1;
        //sti();
        while(irq6);


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group