summaryrefslogtreecommitdiffstats
path: root/source/compiler/aslxref.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2014-09-29 19:53:38 +0000
committerjkim <jkim@FreeBSD.org>2014-09-29 19:53:38 +0000
commit4a5720e5f30ea6a8d31e75f94046c76ace845126 (patch)
treec09826b28ca0b50455664fa1d18a4efff33181e4 /source/compiler/aslxref.c
parent9f91b0b83a53651519b3bbe3b8c1f2a324da984e (diff)
downloadFreeBSD-src-4a5720e5f30ea6a8d31e75f94046c76ace845126.zip
FreeBSD-src-4a5720e5f30ea6a8d31e75f94046c76ace845126.tar.gz
Import ACPICA 20140926.
Diffstat (limited to 'source/compiler/aslxref.c')
-rw-r--r--source/compiler/aslxref.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/source/compiler/aslxref.c b/source/compiler/aslxref.c
index 1cbd6e0..f26cfdd 100644
--- a/source/compiler/aslxref.c
+++ b/source/compiler/aslxref.c
@@ -85,11 +85,7 @@ XfCheckFieldRange (
UINT32 FieldBitLength,
UINT32 AccessBitWidth);
-static BOOLEAN
-XfIsObjectParental (
- ACPI_PARSE_OBJECT *MethodOp1,
- ACPI_PARSE_OBJECT *MethodOp2);
-
+#ifdef __UNDER_DEVELOPMENT
static ACPI_PARSE_OBJECT *
XfGetParentMethod (
ACPI_PARSE_OBJECT *Op);
@@ -99,6 +95,12 @@ XfCheckIllegalReference (
ACPI_PARSE_OBJECT *Op,
ACPI_NAMESPACE_NODE *Node);
+static BOOLEAN
+XfIsObjectParental (
+ ACPI_PARSE_OBJECT *MethodOp1,
+ ACPI_PARSE_OBJECT *MethodOp2);
+#endif
+
/*******************************************************************************
*
@@ -278,6 +280,7 @@ XfCheckFieldRange (
}
+#ifdef __UNDER_DEVELOPMENT
/*******************************************************************************
*
* FUNCTION: XfIsObjectParental
@@ -368,6 +371,7 @@ XfGetParentMethod (
return (NULL);
}
+
/*******************************************************************************
*
* FUNCTION: XfCheckIllegalReference
@@ -446,7 +450,9 @@ XfCheckIllegalReference (
AslError (ASL_ERROR, ASL_MSG_ILLEGAL_FORWARD_REF, Op,
Op->Asl.ExternalName);
}
+
}
+#endif
/*******************************************************************************
@@ -659,9 +665,12 @@ XfNamespaceLocateBegin (
Node->Flags |= ANOBJ_IS_REFERENCED;
+#ifdef __UNDER_DEVELOPMENT
+
/* Check for an illegal reference */
XfCheckIllegalReference (Op, Node);
+#endif
}
/* Attempt to optimize the NamePath */
@@ -1013,6 +1022,14 @@ XfNamespaceLocateBegin (
}
}
+ /* 5) Check for a connection object */
+#if 0
+ else if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONNECTION)
+ {
+ return_ACPI_STATUS (Status);
+ }
+#endif
+
Op->Asl.Node = Node;
return_ACPI_STATUS (Status);
}
OpenPOWER on IntegriCloud