Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340252
b: refs/heads/master
c: f7200d4
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Oct 16, 2012
1 parent cb7fb4a commit 1b01e1c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 50 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: ab3486813bbbd9e74efb4c130183f3994dada4bd
refs/heads/master: f7200d4c504a385b1b70f3bab379f99745f7ef6a
4 changes: 0 additions & 4 deletions trunk/arch/sparc/include/asm/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ extern asmlinkage long sparc_do_fork(unsigned long clone_flags,
struct pt_regs *regs,
unsigned long stack_size);

#ifndef __arch64__
extern asmlinkage int sparc_execve(struct pt_regs *regs);
#endif

#endif /* _SPARC64_SYSCALLS_H */
2 changes: 1 addition & 1 deletion trunk/arch/sparc/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#define __ARCH_WANT_COMPAT_SYS_TIME
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#define __ARCH_WANT_SYS_EXECVE
#endif
#define __ARCH_WANT_SYS_EXECVE

/*
* "Conditional" syscalls
Expand Down
19 changes: 3 additions & 16 deletions trunk/arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -806,23 +806,10 @@ sys_nis_syscall:
call c_sys_nis_syscall
mov %l5, %o7

.align 4
.globl sys_execve
sys_execve:
mov %o7, %l5
add %sp, STACKFRAME_SZ, %o0 ! pt_regs *regs arg
call sparc_execve
mov %l5, %o7

.globl sunos_execv
sunos_execv:
st %g0, [%sp + STACKFRAME_SZ + PT_I2]

call sparc_execve
add %sp, STACKFRAME_SZ, %o0

b ret_sys_call
ld [%sp + STACKFRAME_SZ + PT_I0], %o0
.globl sunos_execv
b sys_execve
clr %i2

.align 4
.globl sys_sparc_pipe
Expand Down
28 changes: 0 additions & 28 deletions trunk/arch/sparc/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,34 +476,6 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs)
return 1;
}

/*
* sparc_execve() executes a new program after the asm stub has set
* things up for us. This should basically do what I want it to.
*/
asmlinkage int sparc_execve(struct pt_regs *regs)
{
int error, base = 0;
struct filename *filename;

/* Check for indirect call. */
if(regs->u_regs[UREG_G1] == 0)
base = 1;

filename = getname((char __user *)regs->u_regs[base + UREG_I0]);
error = PTR_ERR(filename);
if(IS_ERR(filename))
goto out;
error = do_execve(filename->name,
(const char __user *const __user *)
regs->u_regs[base + UREG_I1],
(const char __user *const __user *)
regs->u_regs[base + UREG_I2],
regs);
putname(filename);
out:
return error;
}

unsigned long get_wchan(struct task_struct *task)
{
unsigned long pc, fp, bias = 0;
Expand Down

0 comments on commit 1b01e1c

Please sign in to comment.