Skip to contentSkip to conversation

Name object change produces unexpected errors.

Devel master chief 4 participants 4 messages Mar 7, 2010 – Mar 9, 2010 ACPI component architecture (acpica)

lore
Share & tools
lore

master chief

author
#0 lore raw

I was kind of expecting this to happen:

----------------------------------------------------------------------
ssdt.dsl 80: Name (_ADR, Zero)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

ssdt.dsl 81: Name (_SUN, One)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

ASL Input: ssdt.dsl - 328 lines, 9645 bytes, 79 keywords Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
----------------------------------------------------------------------

But aren't the constants 'Zero' and 'One' supposed to be of type integer already?

We can't use 0x00 and 0x01 here, because then we are stuck with two "Optimizations". That is a no go since I have to deliver a product without errors, warnings and optimizations. I am confused. What are we supposed to use now?

Regards,

Chief

#1 lore raw
Quoted 6 lines · master chief

I was kind of expecting this to happen:

----------------------------------------------------------------------
ssdt.dsl 80: Name (_ADR, Zero)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

Quoted 8 lines

ssdt.dsl 81: Name (_SUN, One)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

ASL Input: ssdt.dsl - 328 lines, 9645 bytes, 79 keywords Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
----------------------------------------------------------------------

But aren't the constants 'Zero' and 'One' supposed to be of type integer already?

Yes, they are integer.
There is a bug in the latest release(20100304).

Quoted 3 lines

We can't use 0x00 and 0x01 here, because then we are stuck with two "Optimizations". That is a no go since I have to deliver a product without errors, warnings and optimizations. I am confused. What are we supposed to use now?

Would you please apply this patch or use the old release?

compiler/aslpredef.c +3 -0
index 04cd2d4..30d33d5 100644
@@ -535,6 +535,9 @@ ApCheckObjectType (
     switch (Op->Asl.ParseOpcode)
     {
     case PARSEOP_INTEGER:
+    case PARSEOP_ZERO:
+    case PARSEOP_ONE:
+    case PARSEOP_ONES:
         ReturnBtype = ACPI_RTYPE_INTEGER;
         break;
 

---
Lin Ming

#2 lore raw

Hi,

I also run into this and I can confirm that this patch fixes this issue.

JFI, If someone needs an rpm package of the latest acpica version (including this fix):
http://software.opensuse.org/search?baseproject=openSUSE%3AFactory&p=1&q=acpica

Thanks,

Thomas

Quoted 10 lines · On Monday 08 March 2010 02:38:44 Lin Ming wrote:
Quoted 9 lines · master chief

I was kind of expecting this to happen:

----------------------------------------------------------------------
ssdt.dsl 80: Name (_ADR, Zero)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

ssdt.dsl 81: Name (_SUN, One)
Error 4080 - ^ Invalid object type for reserved name, must be (Integer)

Quoted 11 lines
Quoted 5 lines

ASL Input: ssdt.dsl - 328 lines, 9645 bytes, 79 keywords Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
----------------------------------------------------------------------

But aren't the constants 'Zero' and 'One' supposed to be of type integer already?

Yes, they are integer.
There is a bug in the latest release(20100304).

Quoted 2 lines

We can't use 0x00 and 0x01 here, because then we are stuck with two "Optimizations". That is a no go since I have to deliver a product without errors, warnings and

optimizations. I am confused. What are we supposed to use now?

Quoted 26 lines
Quoted 1 line

Would you please apply this patch or use the old release?

compiler/aslpredef.c +3 -1
index 04cd2d4..30d33d5 100644
@@ -535,6 +535,9 @@ ApCheckObjectType (
     switch (Op->Asl.ParseOpcode)
     {
     case PARSEOP_INTEGER:
+    case PARSEOP_ZERO:
+    case PARSEOP_ONE:
+    case PARSEOP_ONES:
         ReturnBtype = ACPI_RTYPE_INTEGER;
         break;
 
---

Lin Ming

_______________________________________________
Devel mailing list
Devel(a)acpica.org
http://lists.acpica.org/listinfo/devel

#3 lore raw
In reply to Lin Ming

We are adding additional support to the compiler for checking the types for the predefined ACPI names. The problem you are seeing is in fact a regression in the current release. I would suggest that you use the previous release for now (version number 20100121)

Quoted 4 lines
Quoted 1 line

We can't use 0x00 and 0x01 here, because then we are stuck with two

"Optimizations". That is a no go since I have to deliver a product without errors, warnings and optimizations. I am confused. What are we supposed to use now?

It's too bad you can't use optimizations, that is one of the distinct advantages of the iASL compiler.

Quoted 54 lines

-----Original Message-----
From: Lin, Ming M
Sent: Sunday, March 07, 2010 5:39 PM
To: master chief; Moore, Robert
Cc: devel(a)acpica.org
Subject: Re: [Devel] Name object change produces unexpected errors.

Quoted 5 lines · master chief

I was kind of expecting this to happen:

----------------------------------------------------------------------
ssdt.dsl 80: Name (_ADR, Zero)
Error 4080 - ^ Invalid object type for

reserved name, must be (Integer)

Quoted 3 lines

ssdt.dsl 81: Name (_SUN, One)
Error 4080 - ^ Invalid object type for

reserved name, must be (Integer)

Quoted 6 lines

ASL Input: ssdt.dsl - 328 lines, 9645 bytes, 79 keywords Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
----------------------------------------------------------------------

But aren't the constants 'Zero' and 'One' supposed to be of type integer

already?

Yes, they are integer.
There is a bug in the latest release(20100304).

Quoted 2 lines

We can't use 0x00 and 0x01 here, because then we are stuck with two

"Optimizations". That is a no go since I have to deliver a product without errors, warnings and optimizations. I am confused. What are we supposed to use now?

Quoted 1 line

Would you please apply this patch or use the old release?

compiler/aslpredef.c +3 -1
index 04cd2d4..30d33d5 100644
@@ -535,6 +535,9 @@ ApCheckObjectType (
    switch (Op->Asl.ParseOpcode)
    {
    case PARSEOP_INTEGER:
+    case PARSEOP_ZERO:
+    case PARSEOP_ONE:
+    case PARSEOP_ONES:
        ReturnBtype = ACPI_RTYPE_INTEGER;
        break;
 
---

Lin Ming