diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2019-08-16 17:03:01 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2019-08-16 17:03:01 +0000 |
commit | e63852a7532181a14cec2928b31af2209e98414a (patch) | |
tree | be94508475add18bbaa0cacd6c467983d2b8a443 /source/compiler/aslload.c | |
parent | 0ada71f05e76bf61eb2d5aba852db00705edd364 (diff) |
Import ACPICA 20190816.vendor/acpica/20190816
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=351127
svn path=/vendor-sys/acpica/20190816/; revision=351128; tag=vendor/acpica/20190816
Diffstat (limited to 'source/compiler/aslload.c')
-rw-r--r-- | source/compiler/aslload.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/compiler/aslload.c b/source/compiler/aslload.c index 4dd2dfd0f561..d918c0cc76ff 100644 --- a/source/compiler/aslload.c +++ b/source/compiler/aslload.c @@ -275,7 +275,6 @@ LdLoadFieldElements ( ACPI_STATUS Status; - SourceRegion = UtGetArg (Op, 0); if (SourceRegion) { @@ -1031,7 +1030,8 @@ FinishNode: * DESCRIPTION: Check if certain named objects are declared in the incorrect * scope. Special named objects are listed in * AslGbl_SpecialNamedObjects and can only be declared at the root - * scope. + * scope. _UID inside of a processor declaration must not be a + * string. * ******************************************************************************/ @@ -1052,6 +1052,13 @@ LdCheckSpecialNames ( return; } } + + if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, "_UID") && + Node->Parent->Type == ACPI_TYPE_PROCESSOR && + Node->Type == ACPI_TYPE_STRING) + { + AslError (ASL_ERROR, ASL_MSG_INVALID_PROCESSOR_UID , Op, "found a string"); + } } |