Fix PMC_IN_TRAP_HANDLER() for i386 after the 4/4 split.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
kib 2018-05-13 20:10:02 +00:00
parent 58c11e816a
commit 088f960e02

View File

@ -145,8 +145,8 @@ struct pmc_mdep;
#define PMC_IN_USERSPACE(va) ((va) <= VM_MAXUSER_ADDRESS)
#define PMC_IN_TRAP_HANDLER(PC) \
((PC) >= (uintptr_t) start_exceptions && \
(PC) < (uintptr_t) end_exceptions)
((PC) >= (uintptr_t)start_exceptions + setidt_disp && \
(PC) < (uintptr_t) end_exceptions + setidt_disp)
#define PMC_AT_FUNCTION_PROLOGUE_PUSH_BP(I) \
(((I) & 0x00ffffff) == 0xe58955) /* pushl %ebp; movl %esp,%ebp */