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: bouyer
Date: Mon Jul 14 21:34:48 UTC 2025
Modified Files:
src/sys/arch/i386/i386: i386_trap.S
src/sys/arch/x86/x86: x86_machdep.c
Log Message:
Fix fallout from
https://mail-index.netbsd.org/source-changes/2025/06/20/msg157251.html
trap() may return with interrupts disabled to avoid preemption
before the iret. But on XENPV i386 it seems that iret doesn't reenable events
(or at last doesn't in some case). To fix this,
- in i386 calltrap, move a #ifdef XENPV code reenabling interrupts so that
it is always called before returning
- in cpu_kpreempt_exit(), handle calltrap() the same way copyfunc is; that
is reload the pmap if we got preempted here (only for XENPV i386)
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/i386/i386/i386_trap.S
cvs rdiff -u -r1.158 -r1.159 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