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#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);
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 ---
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#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);
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 ---