Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178160880
D62238.1796155269.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D62238.1796155269.diff
View Options
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S
--- a/sys/amd64/amd64/support.S
+++ b/sys/amd64/amd64/support.S
@@ -1830,9 +1830,10 @@
pushq %rdx
pushq %rcx
pushq %rdi
+ pushq %rsi
- movq %cr0, %rax
- testb $CR0_TS, %al
+ movq %cr0, %rsi
+ testb $CR0_TS, %sil
je 1f
clts
1: movq PCPU(MDS_BUF), %rdi
@@ -1855,10 +1856,11 @@
mfence
movdqa PCPU(MDS_TMP), %xmm0
- testb $CR0_TS, %al
+ testb $CR0_TS, %sil
je 3f
- movq %rax, %cr0
-3: popq %rdi
+ movq %rsi, %cr0
+3: popq %rsi
+ popq %rdi
popq %rcx
popq %rdx
popq %rax
@@ -1870,9 +1872,10 @@
pushq %rdx
pushq %rcx
pushq %rdi
+ pushq %rsi
- movq %cr0, %rax
- testb $CR0_TS, %al
+ movq %cr0, %rsi
+ testb $CR0_TS, %sil
je 1f
clts
1: movq PCPU(MDS_BUF), %rdi
@@ -1895,10 +1898,11 @@
mfence
vmovdqa PCPU(MDS_TMP), %ymm0
- testb $CR0_TS, %al
+ testb $CR0_TS, %sil
je 3f
- movq %rax, %cr0
-3: popq %rdi
+ movq %rsi, %cr0
+3: popq %rsi
+ popq %rdi
popq %rcx
popq %rdx
popq %rax
@@ -1910,9 +1914,10 @@
pushq %rdx
pushq %rcx
pushq %rdi
+ pushq %rsi
- movq %cr0, %rax
- testb $CR0_TS, %al
+ movq %cr0, %rsi
+ testb $CR0_TS, %sil
je 1f
clts
1: movq PCPU(MDS_BUF), %rdi
@@ -1935,10 +1940,11 @@
mfence
vmovdqa64 PCPU(MDS_TMP), %zmm0
- testb $CR0_TS, %al
+ testb $CR0_TS, %sil
je 3f
- movq %rax, %cr0
-3: popq %rdi
+ movq %rsi, %cr0
+3: popq %rsi
+ popq %rdi
popq %rcx
popq %rdx
popq %rax
diff --git a/sys/i386/i386/support.S b/sys/i386/i386/support.S
--- a/sys/i386/i386/support.S
+++ b/sys/i386/i386/support.S
@@ -464,8 +464,8 @@
END(mds_handler_bdw)
ENTRY(mds_handler_skl_sse)
- movl %cr0, %eax
- testb $CR0_TS, %al
+ movl %cr0, %esi
+ testl $CR0_TS, %esi
je 1f
clts
1: movl PCPU(MDS_BUF), %edi
@@ -488,15 +488,15 @@
mfence
movdqa PCPU(MDS_TMP), %xmm0
- testb $CR0_TS, %al
+ testl $CR0_TS, %esi
je 3f
- movl %eax, %cr0
+ movl %esi, %cr0
3: ret
END(mds_handler_skl_sse)
ENTRY(mds_handler_skl_avx)
- movl %cr0, %eax
- testb $CR0_TS, %al
+ movl %cr0, %esi
+ testl $CR0_TS, %esi
je 1f
clts
1: movl PCPU(MDS_BUF), %edi
@@ -519,15 +519,15 @@
mfence
vmovdqa PCPU(MDS_TMP), %ymm0
- testb $CR0_TS, %al
+ testl $CR0_TS, %esi
je 3f
- movl %eax, %cr0
+ movl %esi, %cr0
3: ret
END(mds_handler_skl_avx)
ENTRY(mds_handler_skl_avx512)
- movl %cr0, %eax
- testb $CR0_TS, %al
+ movl %cr0, %esi
+ testl $CR0_TS, %esi
je 1f
clts
1: movl PCPU(MDS_BUF), %edi
@@ -550,9 +550,9 @@
mfence
vmovdqa64 PCPU(MDS_TMP), %zmm0
- testb $CR0_TS, %al
+ testl $CR0_TS, %esi
je 3f
- movl %eax, %cr0
+ movl %esi, %cr0
3: ret
END(mds_handler_skl_avx512)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 1, 8:01 PM (23 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42130451
Default Alt Text
D62238.1796155269.diff (2 KB)
Attached To
Mode
D62238: x86: Restore CR0.TS in the Skylake MDS handlers
Attached
Detach File
Event Timeline