From a3c5f8f5b847ee59641df498e0f9a3cc82d0fc37 Mon Sep 17 00:00:00 2001 From: stefan Date: Mon, 9 Aug 2010 17:49:18 +0000 Subject: [PATCH] - minor optimizations - we push only the required registers git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@53 315a16e6-25f9-4109-90ae-ca3045a26c18 --- arch/x86/kernel/entry.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/entry.asm b/arch/x86/kernel/entry.asm index 84d41d39..8941848e 100644 --- a/arch/x86/kernel/entry.asm +++ b/arch/x86/kernel/entry.asm @@ -501,7 +501,9 @@ extern scheduler global reschedule reschedule: cli - pusha + ; eax could change across a function call + ; => we have not to save the original eax value + push ebx push DWORD [current_task] call scheduler @@ -519,7 +521,7 @@ hack1: jmp 0x00 : 0xDEADBEAF no_task_switch1: - popa + pop ebx sti ret