OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 3:49 am

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: 127
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: 1593
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).

_________________
Carpe diem!


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: 127
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: 8infy, Majestic-12 [Bot], songziming and 129 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