Deleted Added
full compact
dbfileio.c (231844) dbfileio.c (235945)
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
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
54#if (defined ACPI_DEBUGGER || defined ACPI_DISASSEMBLER)
55
56#define _COMPONENT ACPI_CA_DEBUGGER
57 ACPI_MODULE_NAME ("dbfileio")
58
59/*
60 * NOTE: this is here for lack of a better place. It is used in all
61 * flavors of the debugger, need LCD file

--- 242 unchanged lines hidden (view full) ---

304
305 /* File size must be at least as long as the Header-specified length */
306
307 if (TableHeader.Length > FileSize)
308 {
309 AcpiOsPrintf (
310 "TableHeader length [0x%X] greater than the input file size [0x%X]\n",
311 TableHeader.Length, FileSize);
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
312 return (AE_BAD_HEADER);
313 }
314
315#ifdef ACPI_OBSOLETE_CODE
316 /* We only support a limited number of table types */
317
318 if (ACPI_STRNCMP ((char *) TableHeader.Signature, DSDT_SIG, 4) &&
319 ACPI_STRNCMP ((char *) TableHeader.Signature, PSDT_SIG, 4) &&

--- 259 unchanged lines hidden ---
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 ---