From b9ac16de634e04b92d5a050381a363ed1d4aeb52 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 18 Feb 2024 21:39:33 -0500 Subject: kernel/amd64: trap: Remove useless function Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/trap.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 44482b7..85d1058 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -48,8 +48,6 @@ static const char *trap_type[] = { }; static const int TRAP_COUNT = __ARRAY_COUNT(trap_type); -static ftrap_handler_t ftrap_handler = NULL; -static struct spinlock ftrap_handler_lock = { 0 }; static void trap_print(struct trapframe *tf) @@ -65,17 +63,6 @@ trap_print(struct trapframe *tf) kprintf(" in %s mode **\n", mode); } -/* - * Registers a handler for *fatal* traps. - */ -void -register_ftrap_handler(ftrap_handler_t handler) -{ - spinlock_acquire(&ftrap_handler_lock); - ftrap_handler = handler; - spinlock_release(&ftrap_handler_lock); -} - /* * Handles traps. */ -- cgit v1.2.3