git: a15c346af418 - stable/15 - amd64 FRED: no need to store fs/gsbase on user_fred_not_syscall path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Nov 2026 09:02:15 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=a15c346af4189bcd1a58a9c2a138c2ed4f77d3bd
commit a15c346af4189bcd1a58a9c2a138c2ed4f77d3bd
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-10-29 01:01:05 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-03 09:01:16 +0000
amd64 FRED: no need to store fs/gsbase on user_fred_not_syscall path
(cherry picked from commit 6ca697360b53ce4f952d2b178c5d34f75f8c50ec)
---
sys/amd64/amd64/exception.S | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index e7f1c9ad5664..b0ed398a36b4 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -1488,12 +1488,6 @@ user_fred_non_syscall:
movq %r14,TF_R14(%rsp)
movq %r15,TF_R15(%rsp)
SAVE_SEGS
- movq PCPU(CURTHREAD),%r9
- movq TD_PCB(%r9),%r8
- rdfsbase %rax
- movq %rax,PCB_FSBASE(%r8)
- rdgsbase %rax
- movq %rax,PCB_GSBASE(%r8)
movl $TF_HASSEGS,TF_FLAGS(%rsp)
KMSAN_ENTER
movq %rsp, %rdi