From 97d1e9ba2a06e0276c0cbe2e1ba1931a95cff091 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 2 Nov 2021 23:05:56 +0100 Subject: [PATCH] Pit handler save ebp --- arch/x86/irq_pit.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/irq_pit.S b/arch/x86/irq_pit.S index cc5f0f0..e0e596b 100644 --- a/arch/x86/irq_pit.S +++ b/arch/x86/irq_pit.S @@ -11,6 +11,8 @@ pit_handler: // already got eflags, cs and eip on stack thanks to CPU pushl $0 // err_code esp+12+7*4=40 pushl %ebp + movl %esp, %ebp + pushl %eax pushl %ecx pushl %edx