aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-05-01 00:48:06 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:39 -0400
commit080bb657eb0d02d0df73e62572eb814aebf66850 (patch)
tree77cc6b532ff34bef6c427931fd1109b86517fb53 /arch/blackfin
parent592b8785b966ef2841e34a7691026d3aec1ce382 (diff)
Blackfin: delete fork func
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>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/include/asm/unistd.h2
-rw-r--r--arch/blackfin/kernel/entry.S10
-rw-r--r--arch/blackfin/mach-common/entry.S2
3 files changed, 2 insertions, 12 deletions
diff --git a/arch/blackfin/include/asm/unistd.h b/arch/blackfin/include/asm/unistd.h
index 75ec9df5318b..3287222cba34 100644
--- a/arch/blackfin/include/asm/unistd.h
+++ b/arch/blackfin/include/asm/unistd.h
@@ -11,7 +11,7 @@
11 */ 11 */
12#define __NR_restart_syscall 0 12#define __NR_restart_syscall 0
13#define __NR_exit 1 13#define __NR_exit 1
14#define __NR_fork 2 14 /* 2 __NR_fork not supported on nommu */
15#define __NR_read 3 15#define __NR_read 3
16#define __NR_write 4 16#define __NR_write 4
17#define __NR_open 5 17#define __NR_open 5
diff --git a/arch/blackfin/kernel/entry.S b/arch/blackfin/kernel/entry.S
index 686478f5f66b..f33792cc1a0d 100644
--- a/arch/blackfin/kernel/entry.S
+++ b/arch/blackfin/kernel/entry.S
@@ -64,16 +64,6 @@ ENTRY(_ret_from_fork)
64 jump (p0); 64 jump (p0);
65ENDPROC(_ret_from_fork) 65ENDPROC(_ret_from_fork)
66 66
67ENTRY(_sys_fork)
68 r0 = -EINVAL;
69#if (ANOMALY_05000371)
70 nop;
71 nop;
72 nop;
73#endif
74 rts;
75ENDPROC(_sys_fork)
76
77ENTRY(_sys_vfork) 67ENTRY(_sys_vfork)
78 r0 = sp; 68 r0 = sp;
79 r0 += 24; 69 r0 += 24;
diff --git a/arch/blackfin/mach-common/entry.S b/arch/blackfin/mach-common/entry.S
index 84b5e3dbbcc8..80aa2535e2c9 100644
--- a/arch/blackfin/mach-common/entry.S
+++ b/arch/blackfin/mach-common/entry.S
@@ -1377,7 +1377,7 @@ END(_ex_table)
1377ENTRY(_sys_call_table) 1377ENTRY(_sys_call_table)
1378 .long _sys_restart_syscall /* 0 */ 1378 .long _sys_restart_syscall /* 0 */
1379 .long _sys_exit 1379 .long _sys_exit
1380 .long _sys_fork 1380 .long _sys_ni_syscall /* fork */
1381 .long _sys_read 1381 .long _sys_read
1382 .long _sys_write 1382 .long _sys_write
1383 .long _sys_open /* 5 */ 1383 .long _sys_open /* 5 */