Moderators Jake Lo Posted May 30, 2018 Author Moderators Share Posted May 30, 2018 You are not using the patch correctly or not copying the string correctly, either way you have an extra bracket that's causing the error. Remove it and you're set. Quote If (LEqual (PM6H, 0x01)) { // open bracket CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW) // _RW_: Read-Write Status Store (Zero, ECRW) } // close bracket If (PM0H) { // open bracket CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN) // _LEN: Length Store (Zero, F0LN) } //close bracket } // extra bracket which is causing the error If (LEqual (PM0H, 0x01)) { // open bracket CreateBitField (BUF0, \_SB.PCI0._Y0D._RW, F0RW) // _RW_: Read-Write Status Store (Zero, F0RW) } // close bracket CreateDWordField (BUF0, \_SB.PCI0._Y0E._MIN, M1MN) // _MIN: Minimum Base Address CreateDWordField (BUF0, \_SB.PCI0._Y0E._MAX, M1MX) // _MAX: Maximum Base Address CreateDWordField (BUF0, \_SB.PCI0._Y0E._LEN, M1LN) // _LEN: Length ShiftLeft (TLUD, 0x14, M1MN) Add (Subtract (M1MX, M1MN), 0x01, M1LN) Return (BUF0) Link to comment Share on other sites More sharing options...
Recommended Posts