AcpiExec: Add a default handler for SystemCMOS.

Add SystemCMOS handler so that methods that use CMOS won't have
to abort when CMOS is accessed. For AcpiExec ONLY. Not for the
kernel resident code.
This commit is contained in:
Robert Moore 2013-04-12 14:18:27 -07:00
parent 07efe7143c
commit f9c8728fda
2 changed files with 12 additions and 6 deletions

View File

@ -188,17 +188,17 @@ static char *TableEvents[] =
};
#endif /* !ACPI_REDUCED_HARDWARE */
static UINT32 SigintCount = 0;
static AE_DEBUG_REGIONS AeRegions;
BOOLEAN AcpiGbl_DisplayRegionAccess = FALSE;
/*
* We will override some of the default region handlers, especially the
* SystemMemory handler, which must be implemented locally. Do not override
* the PCI_Config handler since we would like to exercise the default handler
* code. These handlers are installed "early" - before any _REG methods
* are executed - since they are special in the sense that tha ACPI spec
* are executed - since they are special in the sense that the ACPI spec
* declares that they must "always be available". Cannot override the
* DataTable region handler either -- needed for test execution.
*/
@ -210,7 +210,7 @@ static ACPI_ADR_SPACE_TYPE DefaultSpaceIdList[] =
/*
* We will install handlers for some of the various address space IDs.
* Test one user-defined address space (used by aslts.)
* Test one user-defined address space (used by aslts).
*/
#define ACPI_ADR_SPACE_USER_DEFINED1 0x80
#define ACPI_ADR_SPACE_USER_DEFINED2 0xE4
@ -219,18 +219,19 @@ static ACPI_ADR_SPACE_TYPE SpaceIdList[] =
{
ACPI_ADR_SPACE_EC,
ACPI_ADR_SPACE_SMBUS,
ACPI_ADR_SPACE_GSBUS,
ACPI_ADR_SPACE_GPIO,
ACPI_ADR_SPACE_CMOS,
ACPI_ADR_SPACE_PCI_BAR_TARGET,
ACPI_ADR_SPACE_IPMI,
ACPI_ADR_SPACE_GPIO,
ACPI_ADR_SPACE_GSBUS,
ACPI_ADR_SPACE_FIXED_HARDWARE,
ACPI_ADR_SPACE_USER_DEFINED1,
ACPI_ADR_SPACE_USER_DEFINED2
};
static ACPI_CONNECTION_INFO AeMyContext;
/******************************************************************************
*
* FUNCTION: AeCtrlCHandler

View File

@ -410,6 +410,11 @@ main (
#ifdef _DEBUG
_CrtSetDbgFlag (_CRTDBG_CHECK_ALWAYS_DF | _CRTDBG_LEAK_CHECK_DF |
_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG));
/*
* Debugging memory corruption issues with windows:
* Add #include <crtdbg.h> to accommon.h
* Add _ASSERTE(_CrtCheckMemory()); where needed to test memory integrity
*/
#endif
printf (ACPI_COMMON_SIGNON ("AML Execution/Debug Utility"));