From ff0e7938f2ecaceec4bcdb1efebb241731e50eaf Mon Sep 17 00:00:00 2001 From: Mitchell Horne Date: Sun, 9 Jun 2019 15:52:26 +0000 Subject: [PATCH] Remove unused mcall_trap() function The mcall_trap() dummy function is unused, and should be removed as we are unlikely to support M-mode traps any time soon. Reviewed by: markj Approved by: markj (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20494 --- sys/riscv/riscv/machdep.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c index eb7cfdb75610..a67b99f91f1a 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -126,15 +126,6 @@ cpuset_t all_harts; extern int *end; extern int *initstack_end; -uintptr_t mcall_trap(uintptr_t mcause, uintptr_t* regs); - -uintptr_t -mcall_trap(uintptr_t mcause, uintptr_t* regs) -{ - - return (0); -} - static void cpu_startup(void *dummy) {