Jump to content
4 posts in this topic

Recommended Posts

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

  • 1 month later...
  • 2 weeks later...

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

  • 9 months later...

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

 Share

×
×
  • Create New...