问题描述
编译DSDT时遇到Control Method should be made Serialized(due to creation of named objects within)错误提示,如下图:
点击错误提示来到一下代码:
- Method (UXDV, 1, NotSerialized)
- {
- Store (0xFF, Local0)
- Name (T_0, Zero)
- Store (Add (Arg0, Zero), T_0)
- If (LEqual (T_0, 0x03F8))
- {
- Store (Zero, Local0)
- }
问题出在Method (UXDV, 1, NotSerialized)
这句代码上。
修复方法
将Method (UXDV, 1, NotSerialized)
修改成Method (UXDV, 1, Serialized)
即可
修复前代码:
- Method (UXDV, 1, NotSerialized)
- {
- Store (0xFF, Local0)
- Name (T_0, Zero)
- Store (Add (Arg0, Zero), T_0)
- If (LEqual (T_0, 0x03F8))
- {
- Store (Zero, Local0)
- }
修复后代码:
- Method (UXDV, 1, Serialized)
- {
- Store (0xFF, Local0)
- Name (T_0, Zero)
- Store (Add (Arg0, Zero), T_0)
- If (LEqual (T_0, 0x03F8))
- {
- Store (Zero, Local0)
- }
错误有好几处,以上面的修改实例修复其他几处错误提示即可。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)