Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333662
b: refs/heads/master
c: 39fcf44
h: refs/heads/master
v: v3
  • Loading branch information
Mark Salter authored and Al Viro committed Oct 1, 2012
1 parent 13c77d0 commit 6ed355d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46f15067c020a0ce712cb2d3ef38c0589a521c15
refs/heads/master: 39fcf44099dd64679c232c4a7bb81cf469e4e43c
2 changes: 2 additions & 0 deletions trunk/arch/c6x/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#if !defined(_ASM_C6X_UNISTD_H) || defined(__SYSCALL)
#define _ASM_C6X_UNISTD_H

#define __ARCH_WANT_KERNEL_EXECVE

/* Use the standard ABI for syscalls. */
#include <asm-generic/unistd.h>

Expand Down
13 changes: 6 additions & 7 deletions trunk/arch/c6x/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ ENTRY(ret_from_kernel_thread)
BNOP .S2 B11,5 /* jump to sys_exit */
ENDPROC(ret_from_kernel_thread)

ENTRY(ret_from_kernel_execve)
GET_THREAD_INFO A12
BNOP .S2 syscall_exit,4
ADD .D2X A4,-8,SP
ENDPROC(ret_from_kernel_execve)

;;
;; These are the interrupt handlers, responsible for calling __do_IRQ()
;; int6 is used for syscalls (see _system_call entry)
Expand Down Expand Up @@ -613,13 +619,6 @@ ENTRY(sys_sigaltstack)
NOP 4
ENDPROC(sys_sigaltstack)

;; kernel_execve
ENTRY(kernel_execve)
MVK .S2 __NR_execve,B0
SWE
BNOP .S2 B3,5
ENDPROC(kernel_execve)

;;
;; Special system calls
;; return address is in B3
Expand Down

0 comments on commit 6ed355d

Please sign in to comment.