Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333663
b: refs/heads/master
c: 680a145
h: refs/heads/master
i:
  333661: 13c77d0
  333659: 496939d
  333655: 30e237f
  333647: 9e1ca3d
  333631: 1dbf87f
v: v3
  • Loading branch information
Mark Salter authored and Al Viro committed Oct 1, 2012
1 parent 6ed355d commit d5324a3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 51 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: 39fcf44099dd64679c232c4a7bb81cf469e4e43c
refs/heads/master: 680a14535c330481517d3f95b2277353a14b8442
5 changes: 0 additions & 5 deletions trunk/arch/c6x/include/asm/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ extern int sys_cache_sync(unsigned long s, unsigned long e);
struct pt_regs;

extern asmlinkage long sys_c6x_clone(struct pt_regs *regs);
extern asmlinkage long sys_c6x_execve(const char __user *name,
const char __user *const __user *argv,
const char __user *const __user *envp,
struct pt_regs *regs);


#include <asm-generic/syscalls.h>

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/c6x/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define _ASM_C6X_UNISTD_H

#define __ARCH_WANT_KERNEL_EXECVE
#define __ARCH_WANT_SYS_EXECVE

/* Use the standard ABI for syscalls. */
#include <asm-generic/unistd.h>
Expand Down
23 changes: 0 additions & 23 deletions trunk/arch/c6x/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -647,29 +647,6 @@ ENTRY(sys_rt_sigreturn)
#endif
ENDPROC(sys_rt_sigreturn)

ENTRY(sys_execve)
ADDAW .D2 SP,2,B6 ; put regs addr in 4th parameter
; & adjust regs stack addr
LDW .D2T2 *+SP(REGS_B4+8),B4

;; c6x_execve(char *name, char **argv,
;; char **envp, struct pt_regs *regs)
#ifdef CONFIG_C6X_BIG_KERNEL
|| MVKL .S1 sys_c6x_execve,A0
MVKH .S1 sys_c6x_execve,A0
B .S2X A0
#else
|| B .S2 sys_c6x_execve
#endif
STW .D2T2 B3,*SP--[2]
ADDKPC .S2 ret_from_c6x_execve,B3,3

ret_from_c6x_execve:
LDW .D2T2 *++SP[2],B3
NOP 4
BNOP .S2 B3,5
ENDPROC(sys_execve)

ENTRY(sys_pread_c6x)
MV .D2X A8,B7
#ifdef CONFIG_C6X_BIG_KERNEL
Expand Down
22 changes: 0 additions & 22 deletions trunk/arch/c6x/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,28 +207,6 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
return 0;
}

/*
* c6x_execve() executes a new program.
*/
SYSCALL_DEFINE4(c6x_execve, const char __user *, name,
const char __user *const __user *, argv,
const char __user *const __user *, envp,
struct pt_regs *, regs)
{
int error;
char *filename;

filename = getname(name);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;

error = do_execve(filename, argv, envp, regs);
putname(filename);
out:
return error;
}

unsigned long get_wchan(struct task_struct *p)
{
return p->thread.wchan;
Expand Down

0 comments on commit d5324a3

Please sign in to comment.