Bug in return value or ros_arch_syscall() on SPARC
authorKevin Klues <klueska@ros-dev.(none)>
Wed, 19 Jan 2011 19:19:18 +0000 (11:19 -0800)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:57 +0000 (17:35 -0700)
This bug caused the cross compiler to not build, and probably has
wider implications as well.

kern/arch/sparc/ros/syscall.h

index 9c581f7..5ceb86d 100644 (file)
@@ -18,7 +18,7 @@ __ros_arch_syscall(long _num, long _a0)
        asm volatile("ta 8" : "=r"(a0),"=r"(a1)
                     : "r"(num),"0"(a0),"1"(a1),"r"(a2),"r"(a3),"r"(a4));
 
-       return ret;
+       return a0;
 }
 
 #endif /* ifndef ROS_KERNEL */