From 3ba69c887bdde4795e52a88ff37964e55766d09c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 7 Jun 2025 18:00:47 -0400 Subject: kernel/amd64: Save %RCX before calling handler Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/vector.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/vector.S b/sys/arch/amd64/amd64/vector.S index d2a3d89..e348ff4 100644 --- a/sys/arch/amd64/amd64/vector.S +++ b/sys/arch/amd64/amd64/vector.S @@ -52,7 +52,9 @@ ioapic_common_func: mov (%rdx), %rbx // intr_hand.func xor %rdi, %rdi // No data + push %rcx // Save our counter call *%rbx // Call the handler + pop %rcx // Restore our counter or %rax, %rax // Was it theirs? (RET >= 1) jnz done // Yes, we are done. 1: inc %rcx // Next -- cgit v1.2.3