diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-16 22:43:47 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-16 22:43:47 -0400 |
commit | 4ed5992035300a9f1b98f8cbca4b53f44043e054 (patch) | |
tree | ff79b0cdbbea4d307b0b2986f225cde7cd1965c2 /sys | |
parent | ab83b94756aece29f23f27a4d0eabf2418955e01 (diff) |
kernel/amd64: trap: Remove trap_quirks()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/trap.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 9a3a7ba..6492a29 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -120,20 +120,6 @@ trap_user(struct trapframe *tf) dispatch_signals(td); } -static void -trap_quirks(struct cpu_info *ci) -{ - static uint8_t count; - - if (ISSET(ci->irq_mask, CPU_IRQ(1)) && count < 1) { - ++count; - pr_error("detected buggy i8042\n"); - pr_error("applying I8042_HOSTILE quirk\n"); - i8042_quirk(I8042_HOSTILE); - return; - } -} - void trap_syscall(struct trapframe *tf) { @@ -155,8 +141,6 @@ trap_syscall(struct trapframe *tf) void trap_handler(struct trapframe *tf) { - struct cpu_info *ci; - splraise(IPL_HIGH); if (tf->trapno >= NELEM(trap_type)) { @@ -164,8 +148,6 @@ trap_handler(struct trapframe *tf) } pr_error("got %s\n", trap_type[tf->trapno]); - ci = this_cpu(); - trap_quirks(ci); /* Handle traps from userland */ if (ISSET(tf->cs, 3)) { |