Fixes trap-based syscalls on x86
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 9 Apr 2010 01:06:15 +0000 (18:06 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:41 +0000 (17:35 -0700)
You need to reinstall your kernel headers (at least the affected file).

kern/arch/i686/ros/bits/syscall.h

index 878ea0b..3db26a6 100644 (file)
@@ -69,7 +69,7 @@ static inline intreg_t __syscall_trap(uint16_t num, intreg_t a1,
        // memory locations.
 
        asm volatile(""
-                    " int %1"
+                    " int %2"
                     : "=a" (ret),
                       "=S" (err)
                     : "i" (T_SYSCALL),