aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-11-23 18:05:37 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-11-23 18:05:37 +0000
commit50796274dc74454ca64a6e120552adb2620c3e65 (patch)
tree91526f3e19920a98573c3d04bbef39cd71a7c0ce /tests
parent33c583d0c71a12a703f849679505114e27bba011 (diff)
downloadsrc-50796274dc74454ca64a6e120552adb2620c3e65.tar.gz
src-50796274dc74454ca64a6e120552adb2620c3e65.zip
Import ACPICA 20111123.vendor/acpica/20111123
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=227896 svn path=/vendor-sys/acpica/20111123/; revision=227897; tag=vendor/acpica/20111123
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/badcode.asl39
1 files changed, 36 insertions, 3 deletions
diff --git a/tests/misc/badcode.asl b/tests/misc/badcode.asl
index 4e90eac312d4..0363c64226f5 100644
--- a/tests/misc/badcode.asl
+++ b/tests/misc/badcode.asl
@@ -9,6 +9,10 @@
*
* To compile, use:
* iasl badcode.asl
+ *
+ * Output:
+ * Compilation complete. 45 Errors, 22 Warnings, 3 Remarks, 16 Optimizations
+ *
*/
DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001)
{
@@ -117,10 +121,10 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001)
}
// Method MTH4 does not explicitly return a value
-
- Method (MTH4) {Return}
+
+ Method (MTH4) {}
Method (MTH5) {Store (MTH4(), Local0)}
-
+
// Invalid _HID values
Device (H1)
@@ -363,5 +367,34 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001)
EndDependentFn ()
})
+
+ // Test descriptor for CreateXxxxField operators in REM1 below
+
+ Name (RSC3, ResourceTemplate ()
+ {
+ DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
+ 0x00000000, // Granularity
+ 0x000C8000, // Range Minimum
+ 0x000C8FFF, // Range Maximum
+ 0x00000000, // Translation Offset
+ 0x00001000, // Length
+ ,, DWI1)
+ })
+
+ Method (REM1)
+ {
+ // Tagged resource field larger than field being created
+
+ CreateWordField (RSC3, \DWI1._LEN, LEN)
+ CreateByteField (RSC3, \DWI1._MIN, MIN)
+ CreateBitField (RSC3, \DWI1._RNG, RNG1)
+
+ // Tagged resource field smaller than field being created
+
+ CreateQWordField (RSC3, \DWI1._MAX, MAX)
+ CreateBitField (RSC3, \DWI1._GRA, GRA)
+ CreateField (RSC3, \DWI1._MIF, 5, MIF)
+ CreateField (RSC3, \DWI1._RNG, 3, RNG2)
+ }
}