svn commit: r322940 - head/sys/amd64/amd64
Ryan Libby
rlibby at FreeBSD.org
Sat Aug 26 23:13:20 UTC 2017
Author: rlibby
Date: Sat Aug 26 23:13:18 2017
New Revision: 322940
URL: https://svnweb.freebsd.org/changeset/base/322940
Log:
amd64: drop q suffix from rd[fg]sbase for gas compatibility
Reviewed by: kib
Approved by: markj (mentor)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12133
Modified:
head/sys/amd64/amd64/cpu_switch.S
head/sys/amd64/amd64/exception.S
Modified: head/sys/amd64/amd64/cpu_switch.S
==============================================================================
--- head/sys/amd64/amd64/cpu_switch.S Sat Aug 26 23:04:19 2017 (r322939)
+++ head/sys/amd64/amd64/cpu_switch.S Sat Aug 26 23:13:18 2017 (r322940)
@@ -108,7 +108,7 @@ ENTRY(cpu_switch)
movl %fs,%eax
cmpl $KUF32SEL,%eax
jne 1f
- rdfsbaseq %rax
+ rdfsbase %rax
movq %rax,PCB_FSBASE(%r8)
1: movl %gs,%eax
cmpl $KUG32SEL,%eax
Modified: head/sys/amd64/amd64/exception.S
==============================================================================
--- head/sys/amd64/amd64/exception.S Sat Aug 26 23:04:19 2017 (r322939)
+++ head/sys/amd64/amd64/exception.S Sat Aug 26 23:13:18 2017 (r322940)
@@ -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
More information about the svn-src-all
mailing list