From 9e629fb83f11ba09bedb2f86b0059ff6ecb73014 Mon Sep 17 00:00:00 2001 From: Erin Date: Fri, 20 May 2022 17:15:18 +0200 Subject: [PATCH] Got rid of two instructions --- ableos/src/arch/x86_64/interrupts.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/ableos/src/arch/x86_64/interrupts.rs b/ableos/src/arch/x86_64/interrupts.rs index dc2fea6..d4b947f 100644 --- a/ableos/src/arch/x86_64/interrupts.rs +++ b/ableos/src/arch/x86_64/interrupts.rs @@ -74,9 +74,7 @@ extern "x86-interrupt" fn timer_interrupt_handler(_stack_frame: InterruptStackFr unsafe { asm!( // Kernel tick - "push rax", "call {tick}", - "pop rax", // Push task's state onto stack // and save task pointer into scheduler