Debugger: Add support to test all possible sleep values.

Add to Sleep command. Call AcpiGetSleepTypeData for all possible
sleep states.
This commit is contained in:
Robert Moore 2012-12-21 13:25:20 -08:00
parent f1ddee53c2
commit 0c6e074436

View File

@ -231,11 +231,21 @@ AcpiDbSleep (
{
ACPI_STATUS Status;
UINT8 SleepState;
UINT8 i;
UINT8 SleepTypeA;
UINT8 SleepTypeB;
ACPI_FUNCTION_TRACE (AcpiDbSleep);
/* Check all possible sleep states */
for (i = 0; i < ACPI_S_STATES_MAX; i++)
{
Status = AcpiGetSleepTypeData (i, &SleepTypeA, &SleepTypeB);
}
SleepState = (UINT8) ACPI_STRTOUL (ObjectArg, NULL, 0);
AcpiOsPrintf ("**** Prepare to sleep ****\n");