-/* $OpenBSD: locore.S,v 1.64 2023/12/12 07:37:21 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.65 2024/10/22 12:51:56 mpi Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
mflr %r28 /* save LR */
mfcr %r29 /* save CR */
mfxer %r30 /* save XER */
- lwz %r31,CI_INTRDEPTH(%r1) /* were we already running on intstk? */
+ lwz %r31,CI_IDEPTH(%r1) /* were we already running on intstk? */
addic. %r31,%r31,1
- stw %r31,CI_INTRDEPTH(%r1)
+ stw %r31,CI_IDEPTH(%r1)
lwz %r1,CI_INTSTK(%r1) /* get interrupt stack */
beq 1f
mfsprg %r1,1 /* yes, get old SP */
mflr %r28 /* save LR */
mfcr %r29 /* save CR */
mfxer %r30 /* save XER */
- lwz %r31,CI_INTRDEPTH(%r1) /* were we already running on intstk? */
+ lwz %r31,CI_IDEPTH(%r1) /* were we already running on intstk? */
addic. %r31,%r31,1
- stw %r31,CI_INTRDEPTH(%r1)
+ stw %r31,CI_IDEPTH(%r1)
lwz %r1,CI_INTSTK(%r1) /* get interrupt stack */
beq 1f
mfsprg %r1,1 /* yes, get old SP */
GET_CPUINFO(%r4); \
lmw %r28,CI_TEMPSAVE(%r4); /* restore r28-r31 */ \
mfctr %r6; \
- lwz %r5,CI_INTRDEPTH(%r4); \
+ lwz %r5,CI_IDEPTH(%r4); \
mfsrr0 %r4; \
mfsrr1 %r3; \
stw %r6,28(%r1); \
mtxer %r3
GET_CPUINFO(%r5)
- lwz %r4,CI_INTRDEPTH(%r5)
+ lwz %r4,CI_IDEPTH(%r5)
addi %r4,%r4,-1 /* adjust reentrancy count */
- stw %r4,CI_INTRDEPTH(%r5)
+ stw %r4,CI_IDEPTH(%r5)
/* Returning to user mode? */
mtcr %r6 /* saved SRR1 */
-/* $OpenBSD: locore0.S,v 1.3 2022/12/08 01:25:45 guenther Exp $ */
+/* $OpenBSD: locore0.S,v 1.4 2024/10/22 12:51:56 mpi Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
addi %r8,%r8,INTSTK
stw %r8,CI_INTSTK(%r9)
li %r0,-1
- stw %r0,CI_INTRDEPTH(%r9)
+ stw %r0,CI_IDEPTH(%r9)
addi %r8,%r8,SPILLSTK+DDBSTK /* leave room for spillstk and ddbstk */
lis %r9,proc0paddr@ha
stw %r8,proc0paddr@l(%r9)
-/* $OpenBSD: cpu.h,v 1.78 2024/06/22 10:22:29 jsg Exp $ */
+/* $OpenBSD: cpu.h,v 1.79 2024/10/22 12:51:56 mpi Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
struct srp_hazard ci_srp_hazards[SRP_HAZARD_NUM];
#endif
- int ci_intrdepth;
+ int ci_idepth;
char *ci_intstk;
#define CPUSAVE_LEN 8
register_t ci_tempsave[CPUSAVE_LEN];
-/* $OpenBSD: intr.c,v 1.10 2022/07/24 00:28:09 cheloha Exp $ */
+/* $OpenBSD: intr.c,v 1.11 2024/10/22 12:51:56 mpi Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA.
if (ci->ci_cpl < wantipl)
splassert_fail(wantipl, ci->ci_cpl, func);
- if (wantipl == IPL_NONE && ci->ci_intrdepth != -1)
- splassert_fail(-1, ci->ci_intrdepth, func);
+ if (wantipl == IPL_NONE && ci->ci_idepth != -1)
+ splassert_fail(-1, ci->ci_idepth, func);
}
#endif