score: fix off-by-one index into syscall table
[linux-2.6.git] / arch / score / kernel / entry.S
index 10e859d..83bb960 100644 (file)
@@ -408,7 +408,7 @@ ENTRY(handle_sys)
        sw      r9, [r0, PT_EPC]
 
        cmpi.c  r27, __NR_syscalls      # check syscall number
-       bgtu    illegal_syscall
+       bgeu    illegal_syscall
 
        slli    r8, r27, 2              # get syscall routine
        la      r11, sys_call_table
@@ -499,3 +499,16 @@ ENTRY(sys_sigaltstack)
        mv      r4, r0
        la      r8, score_sigaltstack
        br      r8
+
+#ifdef __ARCH_WANT_SYSCALL_DEPRECATED
+ENTRY(sys_fork)
+       mv      r4, r0
+       la      r8, score_fork
+       br      r8
+
+ENTRY(sys_vfork)
+       mv      r4, r0
+       la      r8, score_vfork
+       br      r8
+#endif /* __ARCH_WANT_SYSCALL_DEPRECATED */
+