mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
In breakpoint(), use a different immediate to make sure we can
distinguish between debugger inserted breakpoints and fixed breakpoints. While here, make sure the break instruction never ends up in the last slot of a bundle by forcing it to be an M-unit instruction. This makes it easier for use to skip over it.
This commit is contained in:
parent
c50be14baa
commit
6beee8df28
1 changed files with 3 additions and 2 deletions
|
|
@ -37,15 +37,16 @@
|
|||
|
||||
struct thread;
|
||||
|
||||
#define IA64_FIXED_BREAK 0x84B5D
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
static __inline void
|
||||
breakpoint(void)
|
||||
{
|
||||
__asm __volatile("break 0x80100"); /* XXX use linux value */
|
||||
__asm __volatile("break.m %0" :: "i"(IA64_FIXED_BREAK));
|
||||
}
|
||||
|
||||
|
||||
#define HAVE_INLINE_FFS
|
||||
|
||||
static __inline int
|
||||
|
|
|
|||
Loading…
Reference in a new issue