Index: sys/amd64/amd64/machdep.c =================================================================== --- sys/amd64/amd64/machdep.c +++ sys/amd64/amd64/machdep.c @@ -1509,6 +1509,16 @@ return (kmdp); } +static int +pti_get_default(void) +{ + + if (strcmp(cpu_vendor, INTEL_VENDOR_ID) == 0) + return (1); + + return (0); +} + static void amd64_kdb_init(void) { @@ -1618,6 +1628,7 @@ mtx_init(&dt_lock, "descriptor tables", NULL, MTX_DEF); /* exceptions */ + pti = pti_get_default(); TUNABLE_INT_FETCH("vm.pmap.pti", &pti); for (x = 0; x < NIDT; x++)