APM Help
Posted: Fri Oct 01, 2010 12:18 am
I had just tried to implement APM in my kernel (not ACPI at this stage please). I had connected the APM service to protected mode interface through BIOS call in my bootloader. But the problem is: how do I actually write the APM driver or at least few lines of code to actually power down my PC? I had downloaded the APM manual and it says we can implement APM in protected mode to control the power management system(and my pc supports that at least) but what I am not getting is, how exactly?
As mentioned in the manual, the subfunction Ah=53h,al=03h returns the offset of the entry point to the APM BIOS in EBX and APM BIOS 32bit code segment length in ESI. So, how do I use these two values to actually write a APM driver.
If somebody knows how to actually implement APM power management service under protected mode, please HELP! If you have few lines of code involving APM BIOS functions to shutdown the pc, that would be highly appreciated. Thanks in advance for any help.
As mentioned in the manual, the subfunction Ah=53h,al=03h returns the offset of the entry point to the APM BIOS in EBX and APM BIOS 32bit code segment length in ESI. So, how do I use these two values to actually write a APM driver.
If somebody knows how to actually implement APM power management service under protected mode, please HELP! If you have few lines of code involving APM BIOS functions to shutdown the pc, that would be highly appreciated. Thanks in advance for any help.