Calling the PCI Bios
Posted: Sat Apr 10, 2004 9:04 pm
Sorry if this is an old topic, but I didn't find anything answering my particular questions.
I'm trying to access the PCI Bios from pmode, but I get a GPF when I do the far call. I've written the code on my own, based on the PCI bios spec, and I've now switched to borrowing the code from the FAQ, with no luck. My code segment maps all of memory, so I'm pretty sure the page I want is in the segment. It all looks right to me, but I'm betting that my problem has to do with my code segment.
I think I'm in a similar predicament to the author of this thread:
http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=5346
but I've done everything they did & no luck.
My questions are:
1) is there anything else I could be doing wrong?
2) why, in the FAQ, is cs pushed on the stack before making the far call? In the other thread, this made it work; I don't understand.
3) why is there no information anywhere on the LCALL instruction?
Any answers to any of these will be most appreciated.
I'm trying to access the PCI Bios from pmode, but I get a GPF when I do the far call. I've written the code on my own, based on the PCI bios spec, and I've now switched to borrowing the code from the FAQ, with no luck. My code segment maps all of memory, so I'm pretty sure the page I want is in the segment. It all looks right to me, but I'm betting that my problem has to do with my code segment.
I think I'm in a similar predicament to the author of this thread:
http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=5346
but I've done everything they did & no luck.
My questions are:
1) is there anything else I could be doing wrong?
2) why, in the FAQ, is cs pushed on the stack before making the far call? In the other thread, this made it work; I don't understand.
3) why is there no information anywhere on the LCALL instruction?
Any answers to any of these will be most appreciated.