All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@qumranet.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org,
	Sebastian Herbszt <herbszt@gmx.de>
Subject: [Qemu-devel] Re: [Bochs-developers] BIOS, ACPI, CMOS and Windows EvenID: 4
Date: Thu, 21 Aug 2008 17:14:51 +0300	[thread overview]
Message-ID: <20080821141451.GF27587@minantech.com> (raw)
In-Reply-To: <20080821114537.GA25479@morn.localdomain>

On Thu, Aug 21, 2008 at 07:45:37AM -0400, Kevin O'Connor wrote:
> The ACPI support in bochs bios is already 440fx specific, so I don't
> see a problem with adding another chipset specific rule.
So is something like this should be OK:


Index: acpi-dsdt.dsl
===================================================================
RCS file: /cvsroot/bochs/bochs/bios/acpi-dsdt.dsl,v
retrieving revision 1.3
diff -u -r1.3 acpi-dsdt.dsl
--- acpi-dsdt.dsl	26 Jan 2008 09:15:27 -0000	1.3
+++ acpi-dsdt.dsl	21 Aug 2008 14:13:35 -0000
@@ -27,20 +27,6 @@
 {
     Scope (\)
     {
-        /* CMOS memory access */
-        OperationRegion (CMS, SystemIO, 0x70, 0x02)
-        Field (CMS, ByteAcc, NoLock, Preserve)
-        {
-            CMSI,   8,
-            CMSD,   8
-        }
-        Method (CMRD, 1, NotSerialized)
-        {
-            Store (Arg0, CMSI)
-            Store (CMSD, Local0)
-            Return (Local0)
-        }
-
         /* Debug Output */
         OperationRegion (DBG, SystemIO, 0xb044, 0x04)
         Field (DBG, DWordAcc, NoLock, Preserve)
@@ -56,6 +42,12 @@
             Name (_HID, EisaId ("PNP0A03"))
             Name (_ADR, 0x00)
             Name (_UID, 1)
+            OperationRegion (I440, PCI_Config, 0x60, 0x02)
+            Field (I440, ByteAcc, NoLock, Preserve)
+            {
+                 CM34,   8,
+                 CM35,   8,
+            }
             Name(_PRT, Package() {
                 /* PCI IRQ routing table, example from ACPI 2.0a specification,
                    section 6.2.8.1 */
@@ -149,7 +141,9 @@
                 CreateDWordField (MEMP, \_SB.PCI0._CRS.MEMF._MAX, PMAX)
                 CreateDWordField (MEMP, \_SB.PCI0._CRS.MEMF._LEN, PLEN)
                 /* compute available RAM */
-                Add(CMRD(0x34), ShiftLeft(CMRD(0x35), 8), Local0)
+                Store(CM34, Local1)
+                Store(CM35, Local2)
+                Add(Local1, ShiftLeft(Local2, 8), Local0)
                 ShiftLeft(Local0, 16, Local0)
                 Add(Local0, 0x1000000, Local0)
                 /* update field of last region */
Index: rombios32.c
===================================================================
RCS file: /cvsroot/bochs/bochs/bios/rombios32.c,v
retrieving revision 1.29
diff -u -r1.29 rombios32.c
--- rombios32.c	30 Jul 2008 15:13:40 -0000	1.29
+++ rombios32.c	21 Aug 2008 14:13:36 -0000
@@ -677,6 +677,8 @@
                 elcr[0], elcr[1]);
     } else if (vendor_id == PCI_VENDOR_ID_INTEL && device_id == PCI_DEVICE_ID_INTEL_82441) {
         /* i440 PCI bridge */
+        pci_config_writeb(d, 0x60, cmos_readb(0x34));
+        pci_config_writeb(d, 0x61, cmos_readb(0x35));
         bios_shadow_init(d);
     }
 }
--
			Gleb.

  reply	other threads:[~2008-08-21 14:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 13:15 [Qemu-devel] BIOS, ACPI, CMOS and Windows EvenID: 4 Gleb Natapov
2008-08-20 23:23 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
2008-08-21  5:34   ` Gleb Natapov
2008-08-21 11:45     ` Kevin O'Connor
2008-08-21 14:14       ` Gleb Natapov [this message]
2008-08-21 22:37         ` Sebastian Herbszt
2008-08-23 16:22           ` Gleb Natapov
2008-08-24 21:29             ` Sebastian Herbszt
2008-08-25  4:41               ` [Qemu-devel] " Stanislav Shwartsman
2008-08-21 22:47     ` [Qemu-devel] " Sebastian Herbszt
2008-08-24 15:45 ` Kevin O'Connor
2008-08-25  6:38   ` Gleb Natapov
2008-08-25 13:57     ` [Qemu-devel] " Stanislav Shwartsman
2008-08-25 14:00       ` [Qemu-devel] " Gleb Natapov
2008-08-31 19:34       ` Sebastian Herbszt
2008-08-31 20:04         ` Gleb Natapov
2008-08-31 21:19         ` [Qemu-devel] " Stanislav Shwartsman
2008-09-11 22:09           ` [Qemu-devel] " Sebastian Herbszt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080821141451.GF27587@minantech.com \
    --to=gleb@qumranet.com \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=herbszt@gmx.de \
    --cc=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.