user2972185
user2972185

Reputation: 257

how to shut down a machine in 32 bit protected mode

I have been researching a method to shutdown computer without switching to 16 bit real mode. I cannot call BIOS functions in 32 bits protected mode. Although I have been looking for information about that for almost one week, I haven't been able to find any document or source code which works correctly. Because I am very new to low level programming, I doubt that it is not possible to shutdown a computer without switching to real mode. Is it? Thank you.

Upvotes: 2

Views: 883

Answers (1)

Troy Martin
Troy Martin

Reputation: 59

You need to use the Advanced Configuration and Power Interface -- ACPI -- for this. ACPI is a large and complex set of structures and interfaces dealing with things such as power states, battery power, shutdown, power saving for devices, and much much more. If you are developing an operating system, you'll have to write a driver to set up ACPI and its tables so you can shut the computer down cleanly.

I'm not sure how to work with ACPI directly under Linux, and I'm nearly positive that Windows wouldn't even allow you to do anything directly with ACPI.

http://uefi.org/specifications Here are links to the specifications for ACPI as maintained by the UEFI Forum. Good luck, and godspeed.

Upvotes: 3

Related Questions