summaryrefslogtreecommitdiff
path: root/ddb/db_mp.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-22 18:30:36 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 23:09:38 +0100
commit84d3177baeadf10227e4ffe03dc22f0499eadb17 (patch)
tree0852d0ddb8aded7e6b982aafb136e46fefd4cf82 /ddb/db_mp.c
parent8abd38165bc354ab709042d560c948e845e19279 (diff)
ddb: create new header file db_mp.h
* Makefrag.am: Include ddb/db_mp.h. * ddb/db_mp.c (remote_db, lock_db, unlock_db): Remove forward declarations. * ddb/db_mp.h: New file. Add copyright. [_DDB_DB_MP_H_]: Add ifndef. (remote_db, lock_db, unlock_db): Add prototypes.
Diffstat (limited to 'ddb/db_mp.c')
-rw-r--r--ddb/db_mp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index 3ab00ce..dc29413 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -38,6 +38,7 @@
#include <ddb/db_command.h>
#include <ddb/db_run.h>
+#include <ddb/db_mp.h>
/*
* Routines to interlock access to the kernel debugger on
@@ -54,11 +55,6 @@ int db_slave[NCPUS] = { 0 }; /* nonzero if cpu interrupted
int db_enter_debug = 0;
-void remote_db(); /* forward */
-void lock_db();
-void unlock_db();
-
-
/*
* Called when entering kernel debugger.
* Takes db lock. If we were called remotely (slave state) we just