Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177763033
D61777.1795223025.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
785 B
Referenced Files
None
Subscribers
None
D61777.1795223025.diff
View Options
diff --git a/sys/kern/kern_bounds.c b/sys/kern/kern_bounds.c
--- a/sys/kern/kern_bounds.c
+++ b/sys/kern/kern_bounds.c
@@ -48,12 +48,9 @@
/* Set while this CPU is in the log path, to break printf() recursion. */
DPCPU_DEFINE_STATIC(int, bounds_soft_trap_active);
-/*
- * preserve_all is only supported on arm64/amd64; keep in sync with clang's
- * bounds_safety_soft_traps.h.
- */
-#if __has_attribute(preserve_all) && (defined(__aarch64__) || defined(__amd64__))
-#define BOUNDS_SOFT_TRAP_CC __attribute__((preserve_all))
+/* Like clang's preserve_all, but without the FP/SIMD registers. */
+#if __has_attribute(preserve_most) && (defined(__aarch64__) || defined(__amd64__))
+#define BOUNDS_SOFT_TRAP_CC __attribute__((preserve_most))
#else
#define BOUNDS_SOFT_TRAP_CC
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 1:03 AM (23 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41877687
Default Alt Text
D61777.1795223025.diff (785 B)
Attached To
Mode
D61777: kern: do not save FP registers in the soft-trap handler
Attached
Detach File
Event Timeline