CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/03/13 07:51:05
Modified files:
sys/arch/i386/i386: acpi_machdep.c amd64errata.c cpu.c
db_interface.c est.c gdt.c genassym.cf
k1x-pstate.c kvm86.c kvm86call.S lapic.c
locore.s machdep.c mptramp.s pmap.c
powernow-k7.c powernow-k8.c vm_machdep.c
vmm.c
sys/arch/i386/include: cpu.h gdt.h pcb.h proc.h segments.h tss.h
sys/arch/i386/isa: npx.c
Log message:
Preparation for i386 Meltdown fix:
- provide a cpu_softc for cpu_attach() etc.
- replace per PCB TSS with per CPU TSS
The first change prepares for cpu_info being embedded in a
cpu_full_info. Therefore during autoconf/cpu_attach we hand down
a softc.
The second change removes the per PCB TSS. We now have one TSS per
CPU, thus in cpu_switchto() we only have to patch the ring 0 stack
pointer instead of loading a new TSS. This also allows for cleaning
up the GDT, so we only have a single slot for the TSS.
from hshoexer@; OK deraadt@