I'm trying to get an HDD driver working using LBA28 and PIO, but I keep getting this error from the PIC in bochs.
>>PANIC<< master: ICW1: single mode not supported
Now I think this is related to cascading the two 8259's, but I'm not sure.
Here is my PIC code:
Code: Select all
outportb(0x20, 0x11);
outportb(0xA0, 0x11);
outportb(0x21, 0x20);
outportb(0xA1, 0x28);
outportb(0x21, 0x04);
outportb(0xA1, 0x02);
outportb(0x21, 0x01);
outportb(0xA1, 0x01);
outportb(0x21, 0xfb);
outportb(0xA1, 0xff);
[EDIT]
NEVERMIND!! Sorry, my outb's were backwards in my hdd driver.. i was sending the wrong commands the controller!
[/EDIT]