Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6799
-gerrit
commit f2e3a0008848daf75a5eae2a87c52a94b610cf14 Author: Vladimir Serbinenko phcoder@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@gmail.com --- src/arch/x86/boot/acpigen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/arch/x86/boot/acpigen.c b/src/arch/x86/boot/acpigen.c index ba3d2df..fadbb31 100644 --- a/src/arch/x86/boot/acpigen.c +++ b/src/arch/x86/boot/acpigen.c @@ -223,7 +223,10 @@ int acpigen_emit_namestring(const char *namepath) { namepath++; }
- ASSERT(namepath[0] != '\0'); + if(namepath[0] == '\0') { + len += acpigen_emit_byte('\0'); + return len; + }
i = 0; while (namepath[i] != '\0') {