Page MenuHomeFreeBSD

D61777.1795222978.diff
No OneTemporary

Authored By
Unknown
Size
785 B
Referenced Files
None
Subscribers
None

D61777.1795222978.diff

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

Mime Type
text/plain
Expires
Sat, Nov 21, 1:02 AM (23 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41877687
Default Alt Text
D61777.1795222978.diff (785 B)

Event Timeline