1/******************************************************************************* 2 * 3 * Module Name: dbfileio - Debugger file I/O commands. These can't usually 4 * be used when running the debugger in Ring 0 (Kernel mode) 5 * 6 ******************************************************************************/ 7 8/* --- 37 unchanged lines hidden (view full) --- 46#include <contrib/dev/acpica/include/acpi.h> 47#include <contrib/dev/acpica/include/accommon.h> 48#include <contrib/dev/acpica/include/acdebug.h> 49 50#ifdef ACPI_APPLICATION 51#include <contrib/dev/acpica/include/actables.h> 52#endif 53 |
54#ifdef ACPI_ASL_COMPILER 55#include <contrib/dev/acpica/compiler/aslcompiler.h> 56#endif 57 |
58#if (defined ACPI_DEBUGGER || defined ACPI_DISASSEMBLER) 59 60#define _COMPONENT ACPI_CA_DEBUGGER 61 ACPI_MODULE_NAME ("dbfileio") 62 63/* 64 * NOTE: this is here for lack of a better place. It is used in all 65 * flavors of the debugger, need LCD file --- 242 unchanged lines hidden (view full) --- 308 309 /* File size must be at least as long as the Header-specified length */ 310 311 if (TableHeader.Length > FileSize) 312 { 313 AcpiOsPrintf ( 314 "TableHeader length [0x%X] greater than the input file size [0x%X]\n", 315 TableHeader.Length, FileSize); |
316 317#ifdef ACPI_ASL_COMPILER 318 Status = FlCheckForAscii (fp, NULL, FALSE); 319 if (ACPI_SUCCESS (Status)) 320 { 321 AcpiOsPrintf ("File appears to be ASCII only, must be binary\n", 322 TableHeader.Length, FileSize); 323 } 324#endif |
325 return (AE_BAD_HEADER); 326 } 327 328#ifdef ACPI_OBSOLETE_CODE 329 /* We only support a limited number of table types */ 330 331 if (ACPI_STRNCMP ((char *) TableHeader.Signature, DSDT_SIG, 4) && 332 ACPI_STRNCMP ((char *) TableHeader.Signature, PSDT_SIG, 4) && --- 259 unchanged lines hidden --- |