[SeaBIOS] [PATCH] DSDT: Fix HPET _CRS Method

Gabriel L. Somlo gsomlo at gmail.com
Mon Oct 29 17:29:47 CET 2012


Updated _CRS method for HPET, bringing it in line with the way it is
presented on recent hardware (e.g. Dell Latitude D630, MacPro5,1, etc);
Allows it to be detected and utilized from Mac OS X; Also tested OK on
Linux (F16 64-bit install DVD) and Windows (Win7 64-bit install DVD).

Signed-off-by: Gabriel Somlo <somlo at cmu.edu>
---
 src/acpi-dsdt.dsl |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl
index d2575a5..065a3e5 100644
--- a/src/acpi-dsdt.dsl
+++ b/src/acpi-dsdt.dsl
@@ -251,6 +251,12 @@ DefinitionBlock (
         Device(HPET) {
             Name(_HID,  EISAID("PNP0103"))
             Name(_UID, 0)
+            Name(BUF0, ResourceTemplate() {
+                Memory32Fixed (ReadOnly,
+                    0xFED00000,         // Address Base
+                    0x00000400,         // Address Length
+                    )
+            })
             OperationRegion(HPTM, SystemMemory , 0xFED00000, 0x400)
             Field(HPTM, DWordAcc, Lock, Preserve) {
                     VEND, 32,
@@ -268,17 +274,9 @@ DefinitionBlock (
                     }
                     Return (0x0F)
             }
-            Name(_CRS, ResourceTemplate() {
-                DWordMemory(
-                    ResourceConsumer, PosDecode, MinFixed, MaxFixed,
-                    NonCacheable, ReadWrite,
-                    0x00000000,
-                    0xFED00000,
-                    0xFED003FF,
-                    0x00000000,
-                    0x00000400 /* 1K memory: FED00000 - FED003FF */
-                )
-            })
+            Method (_CRS, 0, NotSerialized) {
+                    Return (BUF0)
+            }
         }
     }
 
-- 
1.7.7.6




More information about the SeaBIOS mailing list