CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2018/03/31 07:45:03
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: Recommit preparation for i386 Meltdown fix after OpenBSD 6.3 release. - 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@