Add identcpu.c and specialreg.h definitions for the new Intel/AMD MSRs
authormlarkin <mlarkin@openbsd.org>
Sun, 7 Jan 2018 01:08:20 +0000 (01:08 +0000)
committermlarkin <mlarkin@openbsd.org>
Sun, 7 Jan 2018 01:08:20 +0000 (01:08 +0000)
commitd9b434b46aac28745334f9162a673c6532f1802d
tree56787e5c09392432eab2d9cbce4a0d206a3940a8
parent9df340aed92d00bf2e28d8554663ab143dfc5c34
Add identcpu.c and specialreg.h definitions for the new Intel/AMD MSRs
that should help mitigate spectre. This is just the detection piece, these
features are not yet used.

Part of a larger ongoing effort to mitigate meltdown/spectre. i386 will
come later; it needs some machdep.c cleanup first.

ok kettenis@
sys/arch/amd64/amd64/identcpu.c
sys/arch/amd64/include/cpu.h
sys/arch/amd64/include/specialreg.h