diff --git a/sys/i386/include/pmc_mdep.h b/sys/i386/include/pmc_mdep.h index 0f52cc6fcfe..9b874ebabcf 100644 --- a/sys/i386/include/pmc_mdep.h +++ b/sys/i386/include/pmc_mdep.h @@ -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 */