Page 2 of 2

Re:I'm having a strange problem with timer and IRQ6.

Posted: Tue Sep 21, 2004 3:09 am
by aladdin
now i get this error with bochs

>>PANIC<< read/write command with DMA and int disabled

here is the code i'm using for DMA :
void setDMA()
{

#ifdef FDCDEBUG
printk("FD setting DMA...\n");
#endif
cli;
//outb(0xa,0x2);
outb(0xa,0x6); //
outb(0xc,0); //
outb(0xb,0x46);

outb(0x4,0); //Lo base offset
outb(0x4,0); //high base offset

outb(0x81,0x9); //mem page for DMA chanel 2

outb(0x5,0xFF);
outb(0x5,0x01); //0x10

outb(0xc,0);

outb(0xa,0x2);
sti;

}

Re:I'm having a strange problem with timer and IRQ6.

Posted: Tue Sep 21, 2004 3:33 am
by aladdin
fixed
I forgot to switch on floppy motor after recalibrating :p
now i have a working fdc driver, and no bug with my console output ;D

thank's for help