summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/db_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/amd64/db_interface.c')
-rw-r--r--sys/amd64/amd64/db_interface.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c
index fe36fc3..9f504d4 100644
--- a/sys/amd64/amd64/db_interface.c
+++ b/sys/amd64/amd64/db_interface.c
@@ -23,22 +23,23 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_interface.c,v 1.2 1993/10/16 14:14:55 rgrimes Exp $
+ * $Id: db_interface.c,v 1.3 1993/11/07 17:41:34 wollman Exp $
*/
/*
* Interface to new debugger.
*/
#include "param.h"
+#include "systm.h"
#include "proc.h"
-#include <machine/db_machdep.h>
+#include "ddb/ddb.h"
#include <sys/reboot.h>
#include <vm/vm_statistics.h>
#include <vm/pmap.h>
#include <setjmp.h>
-#include <sys/systm.h> /* just for boothowto --eichin */
+
int db_active = 0;
db_regs_t ddb_regs;
@@ -46,6 +47,7 @@ db_regs_t ddb_regs;
/*
* Received keyboard interrupt sequence.
*/
+void
kdb_kbd_trap(regs)
struct i386_saved_state *regs;
{
@@ -61,6 +63,7 @@ kdb_kbd_trap(regs)
static jmp_buf *db_nofault = 0;
+int
kdb_trap(type, code, regs)
int type, code;
register struct i386_saved_state *regs;
@@ -142,6 +145,7 @@ kdb_trap(type, code, regs)
/*
* Print trap reason.
*/
+void
kdbprinttrap(type, code)
int type, code;
{
@@ -229,8 +233,9 @@ db_write_bytes(addr, size, data)
}
}
+void
Debugger (msg)
-char *msg;
+ char *msg;
{
asm ("int $3");
}
OpenPOWER on IntegriCloud