Skip to content

Commit

Permalink
Blackfin: delete fork func
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
  • Loading branch information
vapier authored and aet00 committed May 21, 2012
1 parent 592b878 commit 080bb65
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions arch/blackfin/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/mach-common/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 080bb65

Please sign in to comment.