summaryrefslogtreecommitdiff
path: root/source/compiler
diff options
context:
space:
mode:
authorrmoore1 <rmoore1>2008-01-23 22:19:31 +0000
committerrmoore1 <rmoore1>2008-01-23 22:19:31 +0000
commitf710c3b2e461fbb99c89b034c67963209f970ff8 (patch)
tree7b3c0c61ee456922498a671cb08e8c2677d49325 /source/compiler
parent27acc4211a8adb6f5b871cf053a2a8b6c93870fd (diff)
Fixes for Unload and DDBHandles.
Implemented support for the use of DDBHandles as an Indexed Reference, as per the ACPI spec. (Lin Ming) BZ 486. Implemented support for UserTerm (Method invocation) for the Unload operator as per the ACPI spec. (Lin Ming) BZ 580
Diffstat (limited to 'source/compiler')
-rw-r--r--source/compiler/aslanalyze.c8
-rw-r--r--source/compiler/asllookup.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/source/compiler/aslanalyze.c b/source/compiler/aslanalyze.c
index baf5c99b9..6f4bf0068 100644
--- a/source/compiler/aslanalyze.c
+++ b/source/compiler/aslanalyze.c
@@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: aslanalyze.c - check for semantic errors
- * $Revision: 1.117 $
+ * $Revision: 1.118 $
*
*****************************************************************************/
@@ -272,7 +272,11 @@ AnMapArgTypeToBtype (
return (ACPI_BTYPE_MUTEX);
case ARGI_DDBHANDLE:
- return (ACPI_BTYPE_DDB_HANDLE);
+ /*
+ * DDBHandleObject := SuperName
+ * ACPI_BTYPE_REFERENCE: Index reference as parameter of Load/Unload
+ */
+ return (ACPI_BTYPE_DDB_HANDLE | ACPI_BTYPE_REFERENCE);
/* Interchangeable types */
/*
diff --git a/source/compiler/asllookup.c b/source/compiler/asllookup.c
index 4830170c4..3592be3ba 100644
--- a/source/compiler/asllookup.c
+++ b/source/compiler/asllookup.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: asllookup- Namespace lookup
- * $Revision: 1.105 $
+ * $Revision: 1.106 $
*
*****************************************************************************/
@@ -468,7 +468,6 @@ LsDoOnePathname (
ACPI_BUFFER TargetPath;
-
TargetPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
Status = AcpiNsHandleToPathname (Node, &TargetPath);
if (ACPI_FAILURE (Status))