[coreboot-gerrit] Patch set updated for coreboot: 3a900f0 acpigen: Correctly handle root scope
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Tue Sep 2 20:54:45 CEST 2014
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6799
-gerrit
commit 3a900f0c2f759ddc95a6b8faf51505c14291f205
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Sat Aug 30 20:44:37 2014 +0200
acpigen: Correctly handle root scope
Change-Id: I9b3c9109b01e348259e64e93a4397212216ab152
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/arch/x86/boot/acpigen.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/arch/x86/boot/acpigen.c b/src/arch/x86/boot/acpigen.c
index ba3d2df..222a2db 100644
--- a/src/arch/x86/boot/acpigen.c
+++ b/src/arch/x86/boot/acpigen.c
@@ -223,7 +223,12 @@ int acpigen_emit_namestring(const char *namepath) {
namepath++;
}
- ASSERT(namepath[0] != '\0');
+ /* If we have only \\ or only ^...^. Then we need to put a null
+ name (0x00). */
+ if(namepath[0] == '\0') {
+ len += acpigen_emit_byte(0x00);
+ return len;
+ }
i = 0;
while (namepath[i] != '\0') {
More information about the coreboot-gerrit
mailing list