Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143336860
D40873.id124162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
859 B
Referenced Files
None
Subscribers
None
D40873.id124162.diff
View Options
diff --git a/sys/cddl/dev/kinst/trampoline.c b/sys/cddl/dev/kinst/trampoline.c
--- a/sys/cddl/dev/kinst/trampoline.c
+++ b/sys/cddl/dev/kinst/trampoline.c
@@ -134,6 +134,16 @@
sx_assert(&kinst_tramp_sx, SX_XLOCKED);
+#if defined(__riscv) || defined(__aarch64__)
+ /*
+ * XXX: RISCV and ARM64 use PAGE_SIZE-long trampolines as a workaround
+ * to a QEMU bug. However, BITSET(9) doesn't seem to be working
+ * properly when the bitset size is 1, so in this case we skip the bit
+ * searching completely.
+ */
+ chunk = NULL;
+ off = 0;
+#else
TAILQ_FOREACH(chunk, &kinst_trampchunks, next) {
/* All trampolines from this chunk are already allocated. */
if ((off = BIT_FFS(KINST_TRAMPS_PER_CHUNK, &chunk->free)) == 0)
@@ -142,6 +152,7 @@
off--;
break;
}
+#endif
if (chunk == NULL) {
if ((how & M_NOWAIT) != 0)
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 30, 2:23 AM (2 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28093133
Default Alt Text
D40873.id124162.diff (859 B)
Attached To
Mode
D40873: kinst: skip trampoline searching for riscv and arm64
Attached
Detach File
Event Timeline
Log In to Comment