diff --git a/source/components/utilities/utxface.c b/source/components/utilities/utxface.c index 372199c4b..65c154eeb 100644 --- a/source/components/utilities/utxface.c +++ b/source/components/utilities/utxface.c @@ -190,11 +190,18 @@ AcpiTerminate (void) FUNCTION_TRACE ("AcpiTerminate"); + /* Terminate the AML Debuger if present */ + + Gbl_DbTerminateThreads = TRUE; + CmReleaseMutex (MTX_DEBUGGER); + + + /* Shutdown and free all resources */ CmSubsystemShutdown (); - /* Free the mutex objects */ + /* Free the mutex objects last */ CmMutexTerminate ();