Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340259
b: refs/heads/master
c: a91a2bb
h: refs/heads/master
i:
  340257: cb29c3d
  340255: ccadabc
v: v3
  • Loading branch information
Jonas Bonn committed Oct 19, 2012
1 parent 4c5bb25 commit fd02623
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 29 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: cbf23cf1b96819599f6a1b9658d1bf3a97c6ff15
refs/heads/master: a91a2bb1dbd87987645bdb56f49e6a50501b692a
2 changes: 2 additions & 0 deletions trunk/arch/openrisc/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#define sys_mmap2 sys_mmap_pgoff

#define __ARCH_WANT_SYS_EXECVE

#include <asm-generic/unistd.h>

#define __NR_or1k_atomic __NR_arch_specific_syscall
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/openrisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1083,10 +1083,6 @@ ENTRY(sys_fork)
l.j _fork_save_extra_regs_and_call
l.addi r3,r1,0

ENTRY(sys_execve)
l.j _sys_execve
l.addi r6,r1,0

ENTRY(sys_sigaltstack)
l.j _sys_sigaltstack
l.addi r5,r1,0
Expand Down
24 changes: 0 additions & 24 deletions trunk/arch/openrisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,30 +251,6 @@ void dump_elf_thread(elf_greg_t *dest, struct pt_regs* regs)
dest[35] = 0;
}

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

filename = getname(name);
error = PTR_ERR(filename);

if (IS_ERR(filename))
goto out;

error = do_execve(filename->name, argv, envp, regs);
putname(filename);

out:
return error;
}

unsigned long get_wchan(struct task_struct *p)
{
/* TODO */
Expand Down

0 comments on commit fd02623

Please sign in to comment.