Page MenuHomeFreeBSD

D27754.diff
No OneTemporary

D27754.diff

diff --git a/sys/cddl/dev/fbt/riscv/fbt_isa.c b/sys/cddl/dev/fbt/riscv/fbt_isa.c
--- a/sys/cddl/dev/fbt/riscv/fbt_isa.c
+++ b/sys/cddl/dev/fbt/riscv/fbt_isa.c
@@ -156,6 +156,19 @@
if (fbt_excluded(name))
return (0);
+ /*
+ * Some assembly-language exception handlers are not suitable for
+ * instrumentation.
+ */
+ if (strcmp(name, "cpu_exception_handler") == 0)
+ return (0);
+ if (strcmp(name, "cpu_exception_handler_user") == 0)
+ return (0);
+ if (strcmp(name, "cpu_exception_handler_supervisor") == 0)
+ return (0);
+ if (strcmp(name, "do_trap_supervisor") == 0)
+ return (0);
+
instr = (uint32_t *)(symval->value);
limit = (uint32_t *)(symval->value + symval->size);

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 12, 3:43 PM (9 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31309982
Default Alt Text
D27754.diff (695 B)

Event Timeline