* [Qemu-devel] [PATCH] Implement ACPI specs 3.0, 4.7.2.5
@ 2007-06-26 20:32 Michael Hanselmann
2007-07-18 21:32 ` Michael Hanselmann
0 siblings, 1 reply; 2+ messages in thread
From: Michael Hanselmann @ 2007-06-26 20:32 UTC (permalink / raw)
To: qemu-devel
The patch below implements ACPI_ENABLE and ACPI_DISABLE as described in
section 4.7.2.5 of the ACPI 3.0 specs.
Signed-off-by: Michael Hanselmann <qemu@hansmi.ch>
Greets,
Michael
---
Index: hw/acpi.c
===================================================================
RCS file: /sources/qemu/qemu/hw/acpi.c,v
retrieving revision 1.12
diff -u -b -B -r1.12 acpi.c
--- hw/acpi.c 28 May 2007 21:01:02 -0000 1.12
+++ hw/acpi.c 26 Jun 2007 20:29:19 -0000
@@ -54,6 +54,9 @@
#define SUS_EN (1 << 13)
+#define ACPI_ENABLE 0xf1
+#define ACPI_DISABLE 0xf0
+
#define SMBHSTSTS 0x00
#define SMBHSTCNT 0x02
#define SMBHSTCMD 0x03
@@ -216,6 +219,14 @@
#endif
if (addr == 0) {
s->apmc = val;
+
+ /* ACPI specs 3.0, 4.7.2.5 */
+ if (val == ACPI_ENABLE) {
+ s->pmcntrl |= SCI_EN;
+ } else if (val == ACPI_DISABLE) {
+ s->pmcntrl &= ~SCI_EN;
+ }
+
if (s->dev.config[0x5b] & (1 << 1)) {
cpu_interrupt(first_cpu, CPU_INTERRUPT_SMI);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Implement ACPI specs 3.0, 4.7.2.5
2007-06-26 20:32 [Qemu-devel] [PATCH] Implement ACPI specs 3.0, 4.7.2.5 Michael Hanselmann
@ 2007-07-18 21:32 ` Michael Hanselmann
0 siblings, 0 replies; 2+ messages in thread
From: Michael Hanselmann @ 2007-07-18 21:32 UTC (permalink / raw)
To: qemu-devel
On Tue, Jun 26, 2007 at 10:32:23PM +0200, Michael Hanselmann wrote:
> The patch below implements ACPI_ENABLE and ACPI_DISABLE as described in
> section 4.7.2.5 of the ACPI 3.0 specs.
Has this patch been ignored by accident or is there something wrong with
it?
Thanks,
Michael
--
http://hansmi.ch/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-18 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26 20:32 [Qemu-devel] [PATCH] Implement ACPI specs 3.0, 4.7.2.5 Michael Hanselmann
2007-07-18 21:32 ` Michael Hanselmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).