NetBSD/src 4dVfXzw — sys/arch/amd64/amd64 netbsd32_machdep.c machdep.c, sys/compat/linux32/arch/amd64 linux32_machdep.c
Disable preemption when setting PCB_COMPAT32, to prevent a context switch before cpu_fsgs_reload() finishes, otherwise we write garbage in the GDT. On NetBSD-current it is harmless, however in NetBSD-8 it might cause panics, because NetBSD-8 uses the old SegRegs model and under this model we reload %fs and %gs during switches.
Version | Delta | File | |
---|---|---|---|
1.120 | +9 | -8 | sys/arch/amd64/amd64/netbsd32_machdep.c |
1.44 | +8 | -6 | sys/compat/linux32/arch/amd64/linux32_machdep.c |
1.329 | +3 | -4 | sys/arch/amd64/amd64/machdep.c |
+20 | -18 | 3 files |