diff options
Diffstat (limited to 'tests/misc/badcode.asl')
-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 () |