diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-09-30 20:13:30 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-09-30 20:13:30 +0000 | 
| commit | 1e24cf365bc9c8df179b145c90d52852724e54ee (patch) | |
| tree | 3c0096caacc85baaf08f60f84ad7b7aa0812a740 /source/components/debugger/dbxface.c | |
| parent | c25a97c7b4f09b4c9efa992434d341f5b89629ff (diff) | |
Notes
Diffstat (limited to 'source/components/debugger/dbxface.c')
| -rw-r--r-- | source/components/debugger/dbxface.c | 46 | 
1 files changed, 8 insertions, 38 deletions
| diff --git a/source/components/debugger/dbxface.c b/source/components/debugger/dbxface.c index a6a5a62dd9cf..9e7c31d6c0c8 100644 --- a/source/components/debugger/dbxface.c +++ b/source/components/debugger/dbxface.c @@ -101,12 +101,10 @@ AcpiDbStartCommand (          {              /* Handshake with the front-end that gets user command lines */ -            Status = AcpiUtReleaseMutex (ACPI_MTX_DEBUG_CMD_COMPLETE); -            if (ACPI_FAILURE (Status)) -            { -                return (Status); -            } -            Status = AcpiUtAcquireMutex (ACPI_MTX_DEBUG_CMD_READY); +            AcpiOsReleaseMutex (AcpiGbl_DbCommandComplete); + +            Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandReady, +                ACPI_WAIT_FOREVER);              if (ACPI_FAILURE (Status))              {                  return (Status); @@ -450,14 +448,16 @@ AcpiInitializeDebugger (      {          /* These were created with one unit, grab it */ -        Status = AcpiUtAcquireMutex (ACPI_MTX_DEBUG_CMD_COMPLETE); +        Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandComplete, +            ACPI_WAIT_FOREVER);          if (ACPI_FAILURE (Status))          {              AcpiOsPrintf ("Could not get debugger mutex\n");              return_ACPI_STATUS (Status);          } -        Status = AcpiUtAcquireMutex (ACPI_MTX_DEBUG_CMD_READY); +        Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandReady, +            ACPI_WAIT_FOREVER);          if (ACPI_FAILURE (Status))          {              AcpiOsPrintf ("Could not get debugger mutex\n"); @@ -511,33 +511,3 @@ AcpiTerminateDebugger (  }  ACPI_EXPORT_SYMBOL (AcpiTerminateDebugger) - - -#ifdef ACPI_OBSOLETE_FUNCTIONS -/******************************************************************************* - * - * FUNCTION:    AcpiDbMethodEnd - * - * PARAMETERS:  WalkState       - Current walk - * - * RETURN:      Status - * - * DESCRIPTION: Called at method termination - * - ******************************************************************************/ - -void -AcpiDbMethodEnd ( -    ACPI_WALK_STATE         *WalkState) -{ - -    if (!AcpiGbl_CmSingleStep) -    { -        return; -    } - -    AcpiOsPrintf ("<Method Terminating>\n"); - -    AcpiDbStartCommand (WalkState, NULL); -} -#endif | 
