summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/db_machdep.h
diff options
context:
space:
mode:
authorAndreas Gunnarsson <andreas@cvs.openbsd.org>2004-06-21 22:41:13 +0000
committerAndreas Gunnarsson <andreas@cvs.openbsd.org>2004-06-21 22:41:13 +0000
commitd5e24dee94b3a505e9f2d6960da600924075b2d4 (patch)
tree2a208252a3b125602836a7329ab001866bcc087d /sys/arch/i386/include/db_machdep.h
parent7603b38588139b41a7f72c1875ee7d5cc0ec4a51 (diff)
Make 'machine ddbcpu' work, and use CPU device number instead of APIC id
KNF lesson and ok from niklas@
Diffstat (limited to 'sys/arch/i386/include/db_machdep.h')
-rw-r--r--sys/arch/i386/include/db_machdep.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h
index c1f5b9b6dfe..4d4be44f9a7 100644
--- a/sys/arch/i386/include/db_machdep.h
+++ b/sys/arch/i386/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.10 2004/06/13 21:49:16 niklas Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.11 2004/06/21 22:41:11 andreas Exp $ */
/* $NetBSD: db_machdep.h,v 1.9 1996/05/03 19:23:59 christos Exp $ */
/*
@@ -120,13 +120,16 @@ void db_task_name(/* task_t */);
int kdb_trap(int, int, db_regs_t *);
void db_machine_init(void);
-void db_enter_ddb(void);
-void db_leave_ddb(void);
+int db_enter_ddb(void);
void db_startcpu(int cpu);
void db_stopcpu(int cpu);
-void db_movetocpu(int cpu);
void i386_ipi_db(struct cpu_info *);
extern struct SIMPLELOCK ddb_mp_slock;
+/* For ddb_state */
+#define DDB_STATE_NOT_RUNNING 0
+#define DDB_STATE_RUNNING 1
+#define DDB_STATE_EXITING 2
+
#endif /* _I386_DB_MACHDEP_H_ */