Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch



Module Name:    src
Committed By:   ad
Date:           Sun Dec  1 14:52:14 UTC 2019

Modified Files:
        src/sys/arch/arm/arm: arm_machdep.c
        src/sys/arch/mips/mips: cpu_subr.c
        src/sys/arch/sparc/sparc: intr.c
        src/sys/arch/sparc64/sparc64: machdep.c
        src/sys/arch/usermode/dev: cpu.c
        src/sys/arch/x86/x86: x86_machdep.c

Log Message:
Make cpu_intr_p() safe to use anywhere, i.e. outside assertions:

Don't call kpreempt_disable() / kpreempt_enable() to make sure we're not
preempted while using the value of curcpu().  Instead, observe the value of
l_ncsw before and after the check to see if we have been preempted.  If
we have been preempted, then we need to retry the read.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/arm/arm/arm_machdep.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/mips/mips/cpu_subr.c
cvs rdiff -u -r1.121 -r1.122 src/sys/arch/sparc/sparc/intr.c
cvs rdiff -u -r1.293 -r1.294 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/usermode/dev/cpu.c
cvs rdiff -u -r1.129 -r1.130 src/sys/arch/x86/x86/x86_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index