summaryrefslogtreecommitdiff
path: root/compiler/aslload.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-09-26 21:40:21 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-09-26 21:40:21 +0000
commit33c583d0c71a12a703f849679505114e27bba011 (patch)
treebda6aef6d9417d30e2c8a2a389d0d13586c507aa /compiler/aslload.c
parentf885636060ce6a22f621a4765c5ea055fbf0cea8 (diff)
Notes
Diffstat (limited to 'compiler/aslload.c')
-rw-r--r--compiler/aslload.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/compiler/aslload.c b/compiler/aslload.c
index 6eb1c5604dda..ed5a0a3b8be2 100644
--- a/compiler/aslload.c
+++ b/compiler/aslload.c
@@ -290,7 +290,6 @@ LdLoadResourceElements (
InitializerOp = ASL_GET_CHILD_NODE (Op);
while (InitializerOp)
{
-
if (InitializerOp->Asl.ExternalName)
{
Status = AcpiNsLookup (WalkState->ScopeInfo,
@@ -305,20 +304,15 @@ LdLoadResourceElements (
}
/*
- * Store the field offset in the namespace node so it
- * can be used when the field is referenced
+ * Store the field offset and length in the namespace node
+ * so it can be used when the field is referenced
*/
- Node->Value = (UINT32) InitializerOp->Asl.Value.Integer;
+ Node->Value = InitializerOp->Asl.Value.Tag.BitOffset;
+ Node->Length = InitializerOp->Asl.Value.Tag.BitLength;
InitializerOp->Asl.Node = Node;
Node->Op = InitializerOp;
-
- /* Pass thru the field type (Bitfield or Bytefield) */
-
- if (InitializerOp->Asl.CompileFlags & NODE_IS_BIT_OFFSET)
- {
- Node->Flags |= ANOBJ_IS_BIT_OFFSET;
- }
}
+
InitializerOp = ASL_GET_PEER_NODE (InitializerOp);
}