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
|
@ -20,6 +20,13 @@
|
|||
#define TYPE_ISA_BUS "ISA"
|
||||
#define ISA_BUS(obj) OBJECT_CHECK(ISABus, (obj), TYPE_ISA_BUS)
|
||||
|
||||
#define TYPE_APPLE_SMC "isa-applesmc"
|
||||
|
||||
static inline bool applesmc_find(void)
|
||||
{
|
||||
return object_resolve_path_type("", TYPE_APPLE_SMC, NULL);
|
||||
}
|
||||
|
||||
typedef struct ISADeviceClass {
|
||||
DeviceClass parent_class;
|
||||
} ISADeviceClass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue