mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Properly implement kdb_cpu_{set|clear}_singlestep to allow DDB to
continue from breakpoints.
This commit is contained in:
parent
74fa1336d6
commit
e60a36f564
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue