summaryrefslogtreecommitdiff
path: root/source/components/debugger/dbxface.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-07-14 17:27:26 +0800
committerLv Zheng <lv.zheng@intel.com>2015-08-14 08:54:13 +0800
commit7a3f22baab000b186779dac64ad71d9776b8f432 (patch)
tree2d1956501ef8867af5e084d51e2ed00e751523ab /source/components/debugger/dbxface.c
parent89cfe111fedb022d44809f8640718bfe36eae81e (diff)
downloadacpica-7a3f22baab000b186779dac64ad71d9776b8f432.tar.gz
Debugger: Split debugger initialization/termination APIs.
It is likely that the debugger is enabled only when a userspace program explicitly tells a kernel to do so, so it shouldn't be initialized as early as current implementation. The only tool requiring ACPI_DEBUGGER is acpiexec, so acpiexec need to call the new APIs by itself. And BSD developers may also get notified to invoke the APIs for DDB enabling. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'source/components/debugger/dbxface.c')
-rw-r--r--source/components/debugger/dbxface.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/source/components/debugger/dbxface.c b/source/components/debugger/dbxface.c
index 5aba4713a..6cd1bb1de 100644
--- a/source/components/debugger/dbxface.c
+++ b/source/components/debugger/dbxface.c
@@ -473,7 +473,7 @@ AcpiDbSingleStep (
/*******************************************************************************
*
- * FUNCTION: AcpiDbInitialize
+ * FUNCTION: AcpiInitializeDebugger
*
* PARAMETERS: None
*
@@ -484,13 +484,13 @@ AcpiDbSingleStep (
******************************************************************************/
ACPI_STATUS
-AcpiDbInitialize (
+AcpiInitializeDebugger (
void)
{
ACPI_STATUS Status;
- ACPI_FUNCTION_TRACE (DbInitialize);
+ ACPI_FUNCTION_TRACE (AcpiInitializeDebugger);
/* Init globals */
@@ -558,10 +558,12 @@ AcpiDbInitialize (
return_ACPI_STATUS (AE_OK);
}
+ACPI_EXPORT_SYMBOL (AcpiInitializeDebugger)
+
/*******************************************************************************
*
- * FUNCTION: AcpiDbTerminate
+ * FUNCTION: AcpiTerminateDebugger
*
* PARAMETERS: None
*
@@ -572,7 +574,7 @@ AcpiDbInitialize (
******************************************************************************/
void
-AcpiDbTerminate (
+AcpiTerminateDebugger (
void)
{
@@ -587,6 +589,8 @@ AcpiDbTerminate (
AcpiGbl_DbOutputFlags = ACPI_DB_DISABLE_OUTPUT;
}
+ACPI_EXPORT_SYMBOL (AcpiTerminateDebugger)
+
#ifdef ACPI_OBSOLETE_FUNCTIONS
/*******************************************************************************