Calling PXE functions from protected mode
Posted: Sun Aug 03, 2008 6:46 am
Hi,
I've written a bootloader which starts in real mode and than switches to protected mode. I boot this one over PXE and it worked. But now I want to use some functions from the PXE API. Therefor my code detects the "!PXE" structur and saves the value of EntryPointESP into [PXE_API_Entry]. I can verify that the value is correct. Now I want to call the GET CHACHED INFO function from the PXE API and tried following:
By doing the far call my Kernel ends up with an CPU Triple Fault. Has anyone an idea what's wrong?
Thank you
I've written a bootloader which starts in real mode and than switches to protected mode. I boot this one over PXE and it worked. But now I want to use some functions from the PXE API. Therefor my code detects the "!PXE" structur and saves the value of EntryPointESP into [PXE_API_Entry]. I can verify that the value is correct. Now I want to call the GET CHACHED INFO function from the PXE API and tried following:
Code: Select all
...
push es
push s_PXENV_GET_CACHED_INFO
push 0x0071
call far [PXE_API_Entry]
add sp,6
...
s_PXENV_GET_CACHED_INFO:
status db 0x00
packetType dw 0x0002
bufferSize dw 0x0000
buffer dw 0x0000
bufferLimit dw 0x0000
Thank you