Page MenuHomeFreeBSD

Command-Line Input

Authored By
markj
Jun 28 2023, 5:06 PM
Size
1 KB
Referenced Files
None
Subscribers
None

Command-Line Input

diff --git a/sys/cddl/dev/kinst/riscv/kinst_isa.h b/sys/cddl/dev/kinst/riscv/kinst_isa.h
index a2930bc5d..90246c293 100644
--- a/sys/cddl/dev/kinst/riscv/kinst_isa.h
+++ b/sys/cddl/dev/kinst/riscv/kinst_isa.h
@@ -19,7 +19,7 @@
* = 2 bytes, ebreak = 4 bytes) and non-compressed instructions (instruction 4
* bytes, ebreak = 4 bytes).
*/
-#define KINST_TRAMP_SIZE 8
+#define KINST_TRAMP_SIZE PAGE_SIZE
typedef uint32_t kinst_patchval_t;
diff --git a/sys/cddl/dev/kinst/trampoline.c b/sys/cddl/dev/kinst/trampoline.c
index babbf84f1..c8a810447 100644
--- a/sys/cddl/dev/kinst/trampoline.c
+++ b/sys/cddl/dev/kinst/trampoline.c
@@ -134,6 +134,9 @@ kinst_trampoline_alloc_locked(int how)
sx_assert(&kinst_tramp_sx, SX_XLOCKED);
+ chunk = NULL;
+ off = 0;
+#if 0
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 +145,7 @@ kinst_trampoline_alloc_locked(int how)
off--;
break;
}
+#endif
if (chunk == NULL) {
if ((how & M_NOWAIT) != 0)
return (NULL);

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6051434
Default Alt Text
Command-Line Input (1 KB)

Event Timeline