[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] kernel2: Alles clobbern beim Aufrufen der Syscall-Handler



* kernel2: Da wir nicht genau wissen, was der Syscall-Handler alles
           macht, muss auch memory in die clobber-Liste aufgenommen
           werden.

Signed-off-by: Antoine Kaufmann <toni@xxxxxxxxxx>
---
 src/kernel2/src/arch/i386/syscall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kernel2/src/arch/i386/syscall.c b/src/kernel2/src/arch/i386/syscall.c
index 5d8a5ef..7f4a45e 100644
--- a/src/kernel2/src/arch/i386/syscall.c
+++ b/src/kernel2/src/arch/i386/syscall.c
@@ -108,7 +108,7 @@ void syscall_arch(machine_state_t* isf)
             "mov %%ebx, %%esp;"
             : "=a" (eax), "=d" (edx), "=S" (stack)
             : "S" (stack), "r" (handler), "c" (syscalls[number].arg_count * 4)
-            : "edi", "ebx");
+            : "edi", "ebx", "memory");
 
         isf->eax = eax;
         if (handler == syscall_get_tick_count) {
-- 
1.6.4.4