diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2018-07-29 20:47:00 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-07-29 20:47:00 +0000 |
commit | b3a7db3b066386957607fe3e5db2a4c617d4f9bc (patch) | |
tree | 38e098013bd7db920190fbba484f491842dac2ef /sys/dev/hyperv | |
parent | 70eaeb3622c3f915b892527f7b69163cbc355da3 (diff) | |
download | src-b3a7db3b066386957607fe3e5db2a4c617d4f9bc.tar.gz src-b3a7db3b066386957607fe3e5db2a4c617d4f9bc.zip |
Use SMAP on amd64.
Ifuncs selectors dispatch copyin(9) family to the suitable variant, to
set rflags.AC around userspace access. Rflags.AC bit is cleared in
all kernel entry points unconditionally even on machines not
supporting SMAP.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D13838
Notes
Notes:
svn path=/head/; revision=336876
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r-- | sys/dev/hyperv/vmbus/amd64/vmbus_vector.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S b/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S index 21f2f3c5cad7..7e15e30a06e9 100644 --- a/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S +++ b/sys/dev/hyperv/vmbus/amd64/vmbus_vector.S @@ -28,6 +28,7 @@ #include "assym.inc" +#include <machine/psl.h> #include <machine/asmacros.h> #include <machine/specialreg.h> |