From 291c27508808bb5c9ab780eb971fe958491f1468 Mon Sep 17 00:00:00 2001 From: jkim Date: Sat, 19 May 2012 05:44:32 +0000 Subject: Import ACPICA 20120518. --- source/components/debugger/dbfileio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/components/debugger/dbfileio.c') diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c index ef9b7fe..9845ff4 100644 --- a/source/components/debugger/dbfileio.c +++ b/source/components/debugger/dbfileio.c @@ -51,6 +51,10 @@ #include "actables.h" #endif +#ifdef ACPI_ASL_COMPILER +#include "aslcompiler.h" +#endif + #if (defined ACPI_DEBUGGER || defined ACPI_DISASSEMBLER) #define _COMPONENT ACPI_CA_DEBUGGER @@ -309,6 +313,15 @@ AcpiDbReadTable ( AcpiOsPrintf ( "TableHeader length [0x%X] greater than the input file size [0x%X]\n", TableHeader.Length, FileSize); + +#ifdef ACPI_ASL_COMPILER + Status = FlCheckForAscii (fp, NULL, FALSE); + if (ACPI_SUCCESS (Status)) + { + AcpiOsPrintf ("File appears to be ASCII only, must be binary\n", + TableHeader.Length, FileSize); + } +#endif return (AE_BAD_HEADER); } -- cgit v1.1