diff options
author | bde <bde@FreeBSD.org> | 1994-09-08 11:49:04 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-09-08 11:49:04 +0000 |
commit | b0b76e7d375fd26215073f7b45f531cf11f58c2a (patch) | |
tree | 4e48a564910e5adcc1e26c1eeb13606ba5554628 /sys/i386/include/db_machdep.h | |
parent | 2b849e2bed674036f6f0aebc8ffc4d6ceb8f423d (diff) | |
download | FreeBSD-src-b0b76e7d375fd26215073f7b45f531cf11f58c2a.zip FreeBSD-src-b0b76e7d375fd26215073f7b45f531cf11f58c2a.tar.gz |
Remove <machine/eflags.h> and all dependencies on it. eflags.h is just
the Mach/i386 version of the BSD/vax(?) <machine/psl.h>. The Mach
version has slightly better names for many macros but is now out of
date and little used. It was originally used even less (for spelling
PSL_T as EFL_TF in <machine/db_machdep.h>).
Diffstat (limited to 'sys/i386/include/db_machdep.h')
-rw-r--r-- | sys/i386/include/db_machdep.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/i386/include/db_machdep.h b/sys/i386/include/db_machdep.h index a3f4064..8145d3a 100644 --- a/sys/i386/include/db_machdep.h +++ b/sys/i386/include/db_machdep.h @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. * - * $Id: db_machdep.h,v 1.2 1993/10/16 14:39:10 rgrimes Exp $ + * $Id: db_machdep.h,v 1.3 1993/11/07 17:42:50 wollman Exp $ */ #ifndef _I386_DB_MACHDEP_H_ @@ -33,7 +33,6 @@ * Machine-dependent defines for new kernel debugger. */ - /* #include <mach/i386/vm_types.h> */ /* #include <mach/i386/vm_param.h> */ #include <vm/vm_prot.h> @@ -41,14 +40,13 @@ #include <vm/vm_inherit.h> #include <vm/lock.h> /* #include <i386/thread.h> */ /* for thread_status */ -#include <machine/frame.h> /* for struct trapframe */ +#include <machine/frame.h> /* for struct trapframe */ /* #include <i386/eflags.h> */ -#include <machine/eflags.h> /* from Mach... */ +#include <machine/psl.h> /* #include <i386/trap.h> */ #include <machine/trap.h> #define i386_saved_state trapframe -/* end of mangling */ typedef vm_offset_t db_addr_t; /* address - unsigned */ typedef int db_expr_t; /* expression - signed */ @@ -65,12 +63,12 @@ extern db_regs_t ddb_regs; /* register state */ #define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1; -#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~EFL_TF) -#define db_set_single_step(regs) ((regs)->tf_eflags |= EFL_TF) +#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T) +#define db_set_single_step(regs) ((regs)->tf_eflags |= PSL_T) /* #define IS_BREAKPOINT_TRAP(type, code) ((type) == T_INT3) */ /* #define IS_WATCHPOINT_TRAP(type, code) ((type) == T_WATCHPOINT) */ -/* using the 386bsd values, rather than the Mach ones: */ +/* using the FreeBSD values, rather than the Mach ones: */ #define IS_BREAKPOINT_TRAP(type, code) ((type) == T_BPTFLT) #define IS_WATCHPOINT_TRAP(type, code) ((type) == T_KDBTRAP) |