ICW1 in bochs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kubeos
Member
Member
Posts: 138
Joined: Tue Jan 30, 2007 2:31 pm
Location: Kamloops BC, CANADA
Contact:

ICW1 in bochs

Post by kubeos »

[EDIT]FIXED! See bottom[/EDIT]

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);
Or is this problem caused by something else?? Thanks for any replies.


[EDIT]
NEVERMIND!! Sorry, my outb's were backwards in my hdd driver.. i was sending the wrong commands the controller!
[/EDIT]
Post Reply