summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/exception.S
diff options
context:
space:
mode:
authorrlibby <rlibby@FreeBSD.org>2017-09-12 06:31:53 +0000
committerLuiz Souza <luiz@netgate.com>2018-02-19 14:32:02 -0300
commita9197dec5d4dc4631abb11db58f5cc72ce0625fd (patch)
tree5424ca51689ce40fa72244419bf3e903ddf3ad5a /sys/amd64/amd64/exception.S
parent2589da26b930eaf9441b6bf27c0f410062adf507 (diff)
downloadFreeBSD-src-a9197dec5d4dc4631abb11db58f5cc72ce0625fd.zip
FreeBSD-src-a9197dec5d4dc4631abb11db58f5cc72ce0625fd.tar.gz
MFC r322940:
amd64: drop q suffix from rd[fg]sbase for gas compatibility (cherry picked from commit c78f11f66bbfbc66d4b5ed31a9dc66831eacdf19)
Diffstat (limited to 'sys/amd64/amd64/exception.S')
-rw-r--r--sys/amd64/amd64/exception.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index c288f3d..ebdf41a 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -340,10 +340,10 @@ prot_addrf:
jz 2f
cmpw $KUF32SEL,TF_FS(%rsp)
jne 1f
- rdfsbaseq %rax
+ rdfsbase %rax
1: cmpw $KUG32SEL,TF_GS(%rsp)
jne 2f
- rdgsbaseq %rdx
+ rdgsbase %rdx
2: swapgs
movq PCPU(CURPCB),%rdi
testb $CPUID_STDEXT_FSGSBASE,cpu_stdext_feature(%rip)
@@ -533,7 +533,7 @@ nmi_fromuserspace:
jz 2f
cmpw $KUF32SEL,TF_FS(%rsp)
jne 1f
- rdfsbaseq %rax
+ rdfsbase %rax
movq %rax,PCB_FSBASE(%rdi)
1: cmpw $KUG32SEL,TF_GS(%rsp)
jne 2f
OpenPOWER on IntegriCloud