summaryrefslogtreecommitdiff
path: root/source/compiler/asllength.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/asllength.c')
-rw-r--r--source/compiler/asllength.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/compiler/asllength.c b/source/compiler/asllength.c
index b9bb3d674d29..6778bf6400fa 100644
--- a/source/compiler/asllength.c
+++ b/source/compiler/asllength.c
@@ -479,12 +479,13 @@ CgGenerateAmlLengths (
Op->Asl.AmlLength = strlen (Buffer);
/*
- * Check for single backslash reference to root,
- * make it a null terminated string in the AML
+ * Check for single backslash reference to root or reference to a name
+ * consisting of only prefix (^) characters. Make it a null terminated
+ * string in the AML.
*/
- if (Op->Asl.AmlLength == 1)
+ if (Op->Asl.AmlLength == 1 || UtNameContainsAllPrefix(Op))
{
- Op->Asl.AmlLength = 2;
+ Op->Asl.AmlLength++;
}
break;