Nikhil Sahu Posted February 18, 2015 Share Posted February 18, 2015 I am trying to convert ASL (*.dsl) to AML (*.dat) file (using iasl -tc *.dsl )but i am facing this error ------------------------------------------------------------------------------------ Intel ACPI Component Architecture ASL+ Optimizing Compiler version 20150204-64 [Feb 5 2015] Copyright © 2000 - 2015 Intel Corporation Compiler aborting due to parser-detected syntax error(s) dsdt.dsl 66: } Error 6126 - ^ syntax error, unexpected '}' dsdt.dsl 13916: Error 6126 - syntax error, unexpected $end and premature End-Of-File ASL Input: dsdt.dsl - 13916 lines, 431044 bytes, 5401 keywords Hex Dump: dsdt.hex - 217 bytes Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations -------------------------------------------------------------------------------------------------------------------- and we did not change the *.dsl (ASL)file which i got from iasl -d *.dat I am getting error on this line, But not able to debug it. Method (ADBG, 1, Serialized) { If (CondRefOf (MDBG)) { Return (MDBG) /* External reference */ Arg0 } // getting error at this point Return (Zero) } please download the complete file and let me know why i got this error. https://www.dropbox....e/dsdt.dsl?dl=0 Link to comment Share on other sites More sharing options...
trivia2012 Posted March 19, 2015 Share Posted March 19, 2015 Hello To add these patches to MaciASL as a repository: - Run MaciASL - choose Preferences from the MaciASL menu bar - select Sources - click the [+] button - give it a name (eg. "Laptop Patches") - type the following URL: http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master Under Syntax is a Patch for your Problem...fix ADBG Link to comment Share on other sites More sharing options...
rrprime Posted April 1, 2015 Share Posted April 1, 2015 Because this is a programming language and you have If (CondRefOf (MDBG)) { Return (MDBG) /* External reference */ Arg0 } // getting error at this point 1) Arg0 is never ever ever reachable and 2) Return means that the function existed 3) there is no point in calling Arg0 because it is not a funciton and you do nothing with it Slution: just comment it (add // on the same line) If (CondRefOf (MDBG)) { Return (MDBG) /* External reference */ // Arg0 } // getting error at this point Link to comment Share on other sites More sharing options...
Codinger Posted January 8, 2016 Share Posted January 8, 2016 Because this is a programming language and you have If (CondRefOf (MDBG)) { Return (MDBG) /* External reference */ Arg0 } // getting error at this point 1) Arg0 is never ever ever reachable and 2) Return means that the function existed 3) there is no point in calling Arg0 because it is not a funciton and you do nothing with it Slution: just comment it (add // on the same line) If (CondRefOf (MDBG)) { Return (MDBG) /* External reference */ // Arg0 } // getting error at this point Arg0 equals static Link to comment Share on other sites More sharing options...
Recommended Posts