On 12.12.2012, at 01:30, Kevin O'Connor wrote: > On Tue, Dec 11, 2012 at 09:53:47AM -0500, Gabriel L. Somlo wrote: >> On Tue, Dec 11, 2012 at 09:33:21AM +0100, Alexander Graf wrote: >>>> (1) as suggested add a special detection register to our applesmc >>>> emulation. >>> >>> This means we are different than real hw. >>> >>>> (2) find a spare bit in q35, next to the present bits for >>>> serial/parallel/floppy >>> >>> Which means we differ from real hw -> bad. >>> >>>> (osx wouldn't boot on piix4 anyway, >>>> so we don't have to care, right?) >>> >>> It could, but you need to manually add an lpc device. I don't think we >>> really care about the piix4 case though :). >>> >>>> (3) use fw_cfg. >>>> >>>> (1) + (2) are easy to handle from AML code. > [...] >> What do you guys think ? > > How about generating an SSDT with just the AppleSMC info in it, and > then have qemu pass the SSDT into SeaBIOS using the existing ACPI > table passing mechanism when the device is present.
That would mean we move the present detection to SeaBIOS which also simply talks to fw_cfg. So it doesn't really buy us anything over an _STA function, does it? Alex _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios