From 937fa60dd2f2b6264fb99f22b638190a3fef996b Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 18 Mar 2016 21:13:19 +0000 Subject: Import ACPICA 20160318. --- source/compiler/aslload.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source/compiler/aslload.c') diff --git a/source/compiler/aslload.c b/source/compiler/aslload.c index 955fd7f454a4..99ec1bfe06df 100644 --- a/source/compiler/aslload.c +++ b/source/compiler/aslload.c @@ -698,6 +698,25 @@ LdNamespace1Begin ( */ Status = AE_OK; } + else if ((Node->Flags & ANOBJ_IS_EXTERNAL) && + (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) && + (ObjectType == ACPI_TYPE_ANY)) + { + /* Allow update of externals of unknown type. */ + + if (AcpiNsOpensScope (ActualObjectType)) + { + Node->Type = (UINT8) ActualObjectType; + Status = AE_OK; + } + else + { + sprintf (MsgBuffer, "%s [%s]", Op->Asl.ExternalName, + AcpiUtGetTypeName (Node->Type)); + AslError (ASL_ERROR, ASL_MSG_SCOPE_TYPE, Op, MsgBuffer); + return_ACPI_STATUS (AE_OK); + } + } else { /* Valid error, object already exists */ -- cgit v1.2.3