/*
* Given pointer to i386_saved_state, determine if it represents
- * a thread executing a) in user space, b) in the kernel, or c)
- * in a kernel-loaded task. Return true for cases a) and c).
+ * a thread executing in user space.
*/
-#define IS_USER_TRAP(regs, etext) ((((regs)->cs & 3) != 0) || \
- (current_act() && \
- current_act()->kernel_loaded && \
- ((char *)(regs)->eip > (etext))))
+#define IS_USER_TRAP(regs, etext) (((regs)->cs & 3) != 0)
extern boolean_t db_check_access(
vm_offset_t addr,
/* macro for checking if a thread has used floating-point */
-#define db_act_fp_used(act) (act && act->mact.pcb->ims.ifps)
+#define db_act_fp_used(act) (act && act->machine.pcb->ims.ifps)
extern void db_tss_to_frame(
int tss_sel,