From: mpi Date: Wed, 23 Oct 2024 07:41:44 +0000 (+0000) Subject: Rename `ci_intrdepth' to `ci_idepth'. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7780107d8d72aead3b07660e6a22b5d218a28425;p=openbsd Rename `ci_intrdepth' to `ci_idepth'. ok jsg@, aoyama@ --- diff --git a/sys/arch/m88k/include/cpu.h b/sys/arch/m88k/include/cpu.h index 37bc80a45ad..97fcbc5ec82 100644 --- a/sys/arch/m88k/include/cpu.h +++ b/sys/arch/m88k/include/cpu.h @@ -1,4 +1,4 @@ -/* $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 @@ -146,7 +146,7 @@ struct cpu_info { 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 @@ -268,7 +268,7 @@ struct clockframe { #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) diff --git a/sys/arch/m88k/m88k/db_interface.c b/sys/arch/m88k/m88k/db_interface.c index a46b2261050..4d7347ba0fe 100644 --- a/sys/arch/m88k/m88k/db_interface.c +++ b/sys/arch/m88k/m88k/db_interface.c @@ -1,4 +1,4 @@ -/* $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 @@ -642,7 +642,7 @@ m88k_db_cpu_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) 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); } } diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index ece0183b97c..adf46fccdf1 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $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. @@ -170,9 +170,9 @@ interrupt(struct trapframe *frame) { struct cpu_info *ci = curcpu(); - ci->ci_intrdepth++; + ci->ci_idepth++; md_interrupt_func(frame); - ci->ci_intrdepth--; + ci->ci_idepth--; } #ifdef M88110