Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mike Frysinger and committed by
Bob Liu
080bb657 592b8785

+2 -12
+1 -1
arch/blackfin/include/asm/unistd.h
··· 11 11 */ 12 12 #define __NR_restart_syscall 0 13 13 #define __NR_exit 1 14 - #define __NR_fork 2 14 + /* 2 __NR_fork not supported on nommu */ 15 15 #define __NR_read 3 16 16 #define __NR_write 4 17 17 #define __NR_open 5
-10
arch/blackfin/kernel/entry.S
··· 64 64 jump (p0); 65 65 ENDPROC(_ret_from_fork) 66 66 67 - ENTRY(_sys_fork) 68 - r0 = -EINVAL; 69 - #if (ANOMALY_05000371) 70 - nop; 71 - nop; 72 - nop; 73 - #endif 74 - rts; 75 - ENDPROC(_sys_fork) 76 - 77 67 ENTRY(_sys_vfork) 78 68 r0 = sp; 79 69 r0 += 24;
+1 -1
arch/blackfin/mach-common/entry.S
··· 1377 1377 ENTRY(_sys_call_table) 1378 1378 .long _sys_restart_syscall /* 0 */ 1379 1379 .long _sys_exit 1380 - .long _sys_fork 1380 + .long _sys_ni_syscall /* fork */ 1381 1381 .long _sys_read 1382 1382 .long _sys_write 1383 1383 .long _sys_open /* 5 */