[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add ACPI translator and shutdown RPC that turns off pc

From: Damien Zammit
Subject: [PATCH] Add ACPI translator and shutdown RPC that turns off pc
Date: Sun, 25 Nov 2018 10:48:39 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi all,

I have written a new RPC that is called from startup for shutting down
the pc.  It has been tested on QEMU and successfully powers off the
machine causing the qemu window to disappear without manually closing it
when you type "halt" as root and it goes through the proper shutdown
sequence first.

In summary, the startup translator does its shutdown sequence, then
calls the shutdown translator which calls into the ACPI translator to
fetch the ACPI registers for shutdown and values to write, then writes
the correct shutdown sequence to the IO.

The reason for all the indirection is that the acpi tables can be reused
for other purposes than just shutdown, and it makes sense to put the
shutdown sequence as a separate RPC so that other machine specific
shutdown sequences can be added later, not just for x86.

Please see attached 3 patches for a complete working implementation.


Attachment: 0001-hurd-ACPI-tables-translator.patch
Description: Text Data

Attachment: 0002-hurd-Add-shutdown-RPC-ACPI-specific-disappear-routine.patch
Description: Text Data

Attachment: 0003-hurd-Add-to-startup-relevant-shutdown-rpc-call.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]