diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2000-07-05 14:19:30 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2000-07-05 14:19:30 +0000 |
commit | 4f38def3f5d0111e81e46c12aec95212997d6f64 (patch) | |
tree | c9ca58f9f927315dfa70b1a34e497d5f97c3a2ce /sys/arch/i386/include/cpufunc.h | |
parent | 2e86fa5ba7ba0ce71293ef91a3dcc48dd44d2d25 (diff) |
Add a breakpoint() inline for use with KGDB.
Ok'd by mickey.
Diffstat (limited to 'sys/arch/i386/include/cpufunc.h')
-rw-r--r-- | sys/arch/i386/include/cpufunc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/i386/include/cpufunc.h b/sys/arch/i386/include/cpufunc.h index c6d5110c809..6e1dac4d6e8 100644 --- a/sys/arch/i386/include/cpufunc.h +++ b/sys/arch/i386/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.5 1999/11/20 11:18:59 matthieu Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.6 2000/07/05 14:19:29 hugh Exp $ */ /* $NetBSD: cpufunc.h,v 1.8 1994/10/27 04:15:59 cgd Exp $ */ /* @@ -242,4 +242,11 @@ rdmsr(u_int msr) return (rv); } +/* Break into DDB/KGDB. */ +static __inline void +breakpoint(void) +{ + __asm __volatile("int $3"); +} + #endif /* !_I386_CPUFUNC_H_ */ |