mirror of
https://github.com/acpica/acpica/
synced 2025-02-05 16:14:06 +03:00
handle status from InstallHandlers
date 2001.10.31.21.40.00; author rmoore1; state Exp;
This commit is contained in:
parent
f40f283efb
commit
573b0e4a4e
@ -1,7 +1,7 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* Module Name: aeexec - Top level parse and execute routines
|
* Module Name: aeexec - Top level parse and execute routines
|
||||||
* $Revision: 1.45 $
|
* $Revision: 1.46 $
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
@ -426,6 +426,9 @@ AeInstallHandlers (void)
|
|||||||
UINT32 i;
|
UINT32 i;
|
||||||
|
|
||||||
|
|
||||||
|
PROC_NAME ("AeInstallHandlers");
|
||||||
|
|
||||||
|
|
||||||
Status = AcpiInstallNotifyHandler (ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY,
|
Status = AcpiInstallNotifyHandler (ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY,
|
||||||
AeNotifyHandler, NULL);
|
AeNotifyHandler, NULL);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
@ -445,8 +448,10 @@ AeInstallHandlers (void)
|
|||||||
(ACPI_ADR_SPACE_TYPE) i, AeRegionHandler, AeRegionInit, NULL);
|
(ACPI_ADR_SPACE_TYPE) i, AeRegionHandler, AeRegionInit, NULL);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
{
|
{
|
||||||
printf ("Could not install an OpRegion handler for %s space (%d)\n",
|
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
|
||||||
AcpiUtGetRegionName((UINT8) i), i);
|
"Could not install an OpRegion handler for %s space (%d)\n",
|
||||||
|
AcpiUtGetRegionName((UINT8) i), i));
|
||||||
|
return (Status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* Module Name: aemain - Main routine for the AcpiExec utility
|
* Module Name: aemain - Main routine for the AcpiExec utility
|
||||||
* $Revision: 1.41 $
|
* $Revision: 1.42 $
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
@ -391,7 +391,11 @@ main (
|
|||||||
/* TBD:
|
/* TBD:
|
||||||
* Need a way to call this after the "LOAD" command
|
* Need a way to call this after the "LOAD" command
|
||||||
*/
|
*/
|
||||||
AeInstallHandlers ();
|
Status = AeInstallHandlers ();
|
||||||
|
if (ACPI_FAILURE (Status))
|
||||||
|
{
|
||||||
|
goto enterloop;
|
||||||
|
}
|
||||||
|
|
||||||
Status = AcpiEnableSubsystem (InitFlags);
|
Status = AcpiEnableSubsystem (InitFlags);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
@ -434,7 +438,11 @@ main (
|
|||||||
/* TBD:
|
/* TBD:
|
||||||
* Need a way to call this after the "LOAD" command
|
* Need a way to call this after the "LOAD" command
|
||||||
*/
|
*/
|
||||||
AeInstallHandlers ();
|
Status = AeInstallHandlers ();
|
||||||
|
if (ACPI_FAILURE (Status))
|
||||||
|
{
|
||||||
|
goto enterloop;
|
||||||
|
}
|
||||||
|
|
||||||
Status = AcpiEnableSubsystem (InitFlags);
|
Status = AcpiEnableSubsystem (InitFlags);
|
||||||
if (ACPI_FAILURE (Status))
|
if (ACPI_FAILURE (Status))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user