Fixed some errors of DSDT

作者: shaneZhang 分类: 互联网技术 发布时间: 2020-02-20 09:27
  1. 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.
}})

如果觉得我的文章对您有用,请随意打赏。如果有其他问题请联系博主QQ(909491009)或者下方留言!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注