diff options
author | grehan <grehan@FreeBSD.org> | 2004-07-27 07:06:20 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-07-27 07:06:20 +0000 |
commit | 94fe445e8c3ad5fa9327009a38ae3815367d1170 (patch) | |
tree | 00ae33c3d0f798418aff40ab5e45fbc939165e9c /sys | |
parent | 58b63ba2489c33d73a79dec09e4a5ed4bd670df2 (diff) | |
download | FreeBSD-src-94fe445e8c3ad5fa9327009a38ae3815367d1170.zip FreeBSD-src-94fe445e8c3ad5fa9327009a38ae3815367d1170.tar.gz |
Properly implement kdb_cpu_{set|clear}_singlestep to allow DDB to
continue from breakpoints.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/powerpc/include/kdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/powerpc/include/kdb.h b/sys/powerpc/include/kdb.h index e573f70..7193641 100644 --- a/sys/powerpc/include/kdb.h +++ b/sys/powerpc/include/kdb.h @@ -30,15 +30,19 @@ #define _MACHINE_KDB_H_ #include <machine/cpufunc.h> +#include <machine/frame.h> +#include <machine/psl.h> static __inline void kdb_cpu_clear_singlestep(void) { + kdb_frame->srr1 &= ~PSL_SE; } static __inline void kdb_cpu_set_singlestep(void) { + kdb_frame->srr1 |= PSL_SE; } static __inline void |