mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Add DSDT node for AppleSMC
AppleSMC (-device isa-applesmc) is required to boot OS X guests. OS X expects a SMC node to be present in the ACPI DSDT. This patch adds a SMC node to the DSDT, and dynamically patches the return value of SMC._STA to either 0x0B if the chip is present, or otherwise to 0x00, before booting the guest. Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
3e16d14fd9
commit
15bce1b7c5
6 changed files with 29 additions and 1 deletions
|
@ -66,7 +66,6 @@ struct AppleSMCData {
|
|||
QLIST_ENTRY(AppleSMCData) node;
|
||||
};
|
||||
|
||||
#define TYPE_APPLE_SMC "isa-applesmc"
|
||||
#define APPLE_SMC(obj) OBJECT_CHECK(AppleSMCState, (obj), TYPE_APPLE_SMC)
|
||||
|
||||
typedef struct AppleSMCState AppleSMCState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue