- Non-hex letters must be upper case (pnp0c14)
所有自必须是大写字母 把 pnpc改成大写字母
2.Invalid combination of Length and Min/Max fixed flags
错误提示无效的长度
length的计算方法为 The Max Value - The Min Value + 1
For example:
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
0x00000000, // Granularity
0xFED40000, // Range Minimum
0xFED44FFF, // Range Maximum
0x00000000, // Translation Offset
0x00000000, // Length
,, , AddressRangeMemory, TypeStatic)
Fiexed Length is 0xFED44FFF - 0xFED40000 + 1 = 0x00005000
3.Invlid object type for reserved name (_PLD:found Buffer, Package required)
For example:
Name (_PLD, Buffer (0x10) // _PLD: Physical Location of Device
{
0x81, 0x00, 0x30, 0x00 // ..0.
})
The fixed code is:
Name (_PLD,Package(0x01) { Buffer (0x10) // _PLD: Physical Location of Device
{
0x81, 0x00, 0x30, 0x00 // ..0.
}})