diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-10-13 20:35:34 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-10-13 20:35:34 +0000 |
commit | 11641cd290cbb4765d39dadd5a4eee278b8769ee (patch) | |
tree | 8b4567d2d969b27d3900a41337a0ad389480eae7 /tests | |
parent | 65742a25f73183e6d4476539ba18aff6480e73d4 (diff) | |
download | src-11641cd290cbb4765d39dadd5a4eee278b8769ee.tar.gz src-11641cd290cbb4765d39dadd5a4eee278b8769ee.zip |
Import ACPICA 20101013.vendor/acpica/20101013
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=213800
svn path=/vendor-sys/acpica/20101013/; revision=213801; tag=vendor/acpica/20101013
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/badcode.asl | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/tests/misc/badcode.asl b/tests/misc/badcode.asl index 36ca0d582f27..1230ec07ebb6 100644 --- a/tests/misc/badcode.asl +++ b/tests/misc/badcode.asl @@ -35,7 +35,7 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) // Invalid hex escape sequence Name (ESC1, "abcdefg\x00hijklmn") - + // Field access beyond region bounds OperationRegion (OPR1, SystemMemory, 0x2000, 6) @@ -116,9 +116,24 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) Store (MTH2 (), Local0) } - // Invalid _HID value + // Invalid _HID values - Name (_HID, "*PNP0C0A") + Device (H1) + { + Name (_HID, "*PNP0C0A") // Illegal leading asterisk + } + Device (H2) + { + Name (_HID, "PNP") // Too short, must be 7 or 8 chars + } + Device (H3) + { + Name (_HID, "MYDEVICE01") // Too long, must be 7 or 8 chars + } + Device (H4) + { + Name (_HID, "acpi0001") // non-hex chars must be uppercase + } // Predefined Name typechecking @@ -155,7 +170,7 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) } } - // Missing EndDependentFn macro + // Missing EndDependentFn macro }) Name (RSC2, ResourceTemplate () @@ -191,7 +206,7 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) ) // Invalid AccessSize parameter - Register (SystemIO, + Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000000100, // Address @@ -287,6 +302,16 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) 0x00001000, // Length ,, ) + // Null descriptor (intended to be modified at runtime) must + // have a resource tag (to allow it to be modified at runtime) + DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, + 0x00000000, // Granularity + 0x00000000, // Range Minimum + 0x00000000, // Range Maximum + 0x00000000, // Translation Offset + 0x00000000, // Length + ,, ) + // Missing StartDependentFn macro EndDependentFn () |