apm bios pmode
Posted: Mon Sep 21, 2009 8:56 am
Hi,
Can someone please show me how to perform call to apm bios? I'm really stucked here. I have checked for APM PMODE 32BIT support, have setup interface connection and have updated my GDT. Then, I tried to far-call the APM entry point with ax=530a (get power status) and bx=1. What i got was GPF and in bochsout was:
Can someone please show me how to perform call to apm bios? I'm really stucked here. I have checked for APM PMODE 32BIT support, have setup interface connection and have updated my GDT. Then, I tried to far-call the APM entry point with ax=530a (get power status) and bx=1. What i got was GPF and in bochsout was:
....maybe the values whitch i caught from 5303 int15 is wrong:BOCHS-DEBUGGER wrote: LOCK prefix unallowed (op1=0x53, attr=0x0, mod=0x0, nnn=0)
LOCK prefix unallowed (op1=0x53, attr=0x0, mod=0x0, nnn=0)
write_virtual_checks(): write beyond limit, r/w
Can someone show me how to do this right? It means a lot for me to get this thing working,BOCHS-DEBUGGER wrote: pm 32bit cs base : 0xf000 (returned in ax)
apm 16bit cs base : 0xf000 (returned in cx)
apm entrypoint : 0xaf0d (returned in ebx)
apm ds base : 0xf000 (returned in dx)
apm 32/16 cs lenght : 0xfff0 (both) (returned in esi)
apm ds lenght : 0xfff0 (returned in di),