]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Blackfin: delete fork func
authorMike Frysinger <vapier@gentoo.org>
Tue, 1 May 2012 04:48:06 +0000 (00:48 -0400)
committerBob Liu <lliubbo@gmail.com>
Mon, 21 May 2012 06:54:39 +0000 (14:54 +0800)
We don't implement fork() since we are no-mmu, so redirect it to the
existing ENOSYS stub rather than adding a custom EINVAL one.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/include/asm/unistd.h
arch/blackfin/kernel/entry.S
arch/blackfin/mach-common/entry.S

index 75ec9df5318b57ee81db41b297f0ce452c13a94d..3287222cba34f12889c464c5b2cb0970542dba61 100644 (file)
@@ -11,7 +11,7 @@
  */
 #define __NR_restart_syscall     0
 #define __NR_exit                1
-#define __NR_fork                2
+                               /* 2 __NR_fork not supported on nommu */
 #define __NR_read                3
 #define __NR_write               4
 #define __NR_open                5
index 686478f5f66b90402ffad203bce6d2dc37b78e13..f33792cc1a0d8a9b9cd553d379726886f5c3c22e 100644 (file)
@@ -64,16 +64,6 @@ ENTRY(_ret_from_fork)
        jump (p0);
 ENDPROC(_ret_from_fork)
 
-ENTRY(_sys_fork)
-       r0 = -EINVAL;
-#if (ANOMALY_05000371)
-       nop;
-       nop;
-       nop;
-#endif
-       rts;
-ENDPROC(_sys_fork)
-
 ENTRY(_sys_vfork)
        r0 = sp;
        r0 += 24;
index 84b5e3dbbcc85ea595547ab06d101060b9fe7a69..80aa2535e2c9f2be80c6f78d6a49c832f7e8be3d 100644 (file)
@@ -1377,7 +1377,7 @@ END(_ex_table)
 ENTRY(_sys_call_table)
        .long _sys_restart_syscall      /* 0 */
        .long _sys_exit
-       .long _sys_fork
+       .long _sys_ni_syscall   /* fork */
        .long _sys_read
        .long _sys_write
        .long _sys_open         /* 5 */