-/* $OpenBSD: cpu.h,v 1.81 2024/08/08 13:56:00 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.82 2024/10/23 07:41:44 mpi Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
ci_schedstate; /* scheduling state */
int ci_want_resched; /* need_resched() invoked */
- u_int ci_intrdepth; /* interrupt depth */
+ u_int ci_idepth; /* interrupt depth */
int ci_ddb_state; /* ddb status */
#define CI_DDB_RUNNING 0
#define CLKF_USERMODE(framep) (((framep)->tf.tf_epsr & PSR_MODE) == 0)
#define CLKF_PC(framep) ((framep)->tf.tf_sxip & XIP_ADDR)
#define CLKF_INTR(framep) \
- (((struct cpu_info *)(framep)->tf.tf_cpu)->ci_intrdepth > 1)
+ (((struct cpu_info *)(framep)->tf.tf_cpu)->ci_idepth > 1)
#define aston(p) ((p)->p_md.md_astpending = 1)
-/* $OpenBSD: db_interface.c,v 1.30 2024/05/22 14:25:47 jsg Exp $ */
+/* $OpenBSD: db_interface.c,v 1.31 2024/10/23 07:41:44 mpi Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
db_printf("%ccpu%d %02x %-14s %08lx %08lx %3u %08x\n",
(cpu == cpu_number()) ? '*' : ' ', CPU_INFO_UNIT(ci),
ci->ci_flags, state, (register_t)ci->ci_curproc,
- (register_t)ci->ci_curpcb, ci->ci_intrdepth, ci->ci_ipi);
+ (register_t)ci->ci_curpcb, ci->ci_idepth, ci->ci_ipi);
}
}
-/* $OpenBSD: trap.c,v 1.136 2024/10/20 06:54:11 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.137 2024/10/23 07:41:44 mpi Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
{
struct cpu_info *ci = curcpu();
- ci->ci_intrdepth++;
+ ci->ci_idepth++;
md_interrupt_func(frame);
- ci->ci_intrdepth--;
+ ci->ci_idepth--;
}
#ifdef M88110