summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/compiler/aslload.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-14 02:10:27 +0000
committernjl <njl@FreeBSD.org>2004-04-14 02:10:27 +0000
commit3c67c2e8d58f25daaed0d50f5d4355084f1faf87 (patch)
tree9c760be068e0b25d22acbac5eaeba299b68429ff /sys/contrib/dev/acpica/compiler/aslload.c
parent61c302fc074304c548f2de409a49f0c6c9564470 (diff)
downloadFreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.zip
FreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.tar.gz
Import ACPI-CA 20040402 distribution.
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/aslload.c')
-rw-r--r--sys/contrib/dev/acpica/compiler/aslload.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/sys/contrib/dev/acpica/compiler/aslload.c b/sys/contrib/dev/acpica/compiler/aslload.c
index 79e79bf..45f292d 100644
--- a/sys/contrib/dev/acpica/compiler/aslload.c
+++ b/sys/contrib/dev/acpica/compiler/aslload.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: dswload - Dispatcher namespace load callbacks
- * $Revision: 60 $
+ * $Revision: 62 $
*
*****************************************************************************/
@@ -518,14 +518,19 @@ LdNamespace1Begin (
* Which is used to workaround the fact that the MS interpreter
* does not allow Scope() forward references.
*/
- sprintf (MsgBuffer, "%s, %s, Changing type to (Scope)",
+ sprintf (MsgBuffer, "%s [%s], changing type to [Scope]",
Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type));
AslError (ASL_REMARK, ASL_MSG_SCOPE_TYPE, Op, MsgBuffer);
/*
- * Switch the type
+ * Switch the type to scope, open the new scope
*/
- Node->Type = ACPI_TYPE_ANY;
+ Node->Type = ACPI_TYPE_LOCAL_SCOPE;
+ Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState);
+ if (ACPI_FAILURE (Status))
+ {
+ return_ACPI_STATUS (Status);
+ }
break;
default:
@@ -533,15 +538,20 @@ LdNamespace1Begin (
/*
* All other types are an error
*/
- sprintf (MsgBuffer, "%s, %s", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type));
+ sprintf (MsgBuffer, "%s [%s]", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type));
AslError (ASL_ERROR, ASL_MSG_SCOPE_TYPE, Op, MsgBuffer);
/*
* However, switch the type to be an actual scope so
* that compilation can continue without generating a whole
- * cascade of additional errors.
+ * cascade of additional errors. Open the new scope.
*/
- Node->Type = ACPI_TYPE_ANY;
+ Node->Type = ACPI_TYPE_LOCAL_SCOPE;
+ Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState);
+ if (ACPI_FAILURE (Status))
+ {
+ return_ACPI_STATUS (Status);
+ }
break;
}
OpenPOWER on IntegriCloud