Skip to contentSkip to conversation

AppleSMC device emulation

PATCH Applied Alexander Graf 2 participants 3 messages Jun 30, 2010 – Jul 11, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AppleSMC device emulation

Intel Macs have a chip called the "AppleSMC" which they use to control certain Apple specific parts of the hardware, like the keyboard background light.

That chip is also used to store a key that Mac OS X uses to decrypt binaries.

This patch adds emulation for that chip, so we're getting one step further to having Mac OS X run natively on Qemu.

---

v1 -> v2:

- fix license
- move APPLESMC: into smc_debug
- make opaque casting implicit
- use memcmp, fix indent
- move key map to reset function
- disable debugging

---
 Makefile.target |    2 +-
 hw/applesmc.c   |  241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 242 insertions(+), 1 deletions(-)
 create mode 100644 hw/applesmc.c
Makefile.target +1 -1
index f64702b..dcf0193 100644
@@ -192,7 +192,7 @@ obj-y += e1000.o
 obj-i386-y += vga.o
 obj-i386-y += mc146818rtc.o i8259.o pc.o
 obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o
-obj-i386-y += vmmouse.o vmport.o hpet.o
+obj-i386-y += vmmouse.o vmport.o hpet.o applesmc.o
 obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
 obj-i386-y += debugcon.o multiboot.o
 obj-i386-y += pc_piix.o
hw/applesmc.c new file +241 -0

241 lines not on this page · raw message

Signature · 1 line
1.6.0.2
#1 lore raw
Quoted 10 lines · Alexander Graf

Intel Macs have a chip called the "AppleSMC" which they use to control certain Apple specific parts of the hardware, like the keyboard background light.

That chip is also used to store a key that Mac OS X uses to decrypt binaries.

This patch adds emulation for that chip, so we're getting one step further to having Mac OS X run natively on Qemu.

Ping?

Alex

Applied
#2 lore raw

Thanks, applied.

Quoted 20 lines · Alexander Graf
Quoted 10 lines · Alexander Graf

Intel Macs have a chip called the "AppleSMC" which they use to control certain Apple specific parts of the hardware, like the keyboard background light.

That chip is also used to store a key that Mac OS X uses to decrypt binaries.

This patch adds emulation for that chip, so we're getting one step further to having Mac OS X run natively on Qemu.

Ping?

Alex