Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340247
b: refs/heads/master
c: 2f12af3
h: refs/heads/master
i:
  340245: c99199d
  340243: bf41c8b
  340239: f3dc099
v: v3
  • Loading branch information
Al Viro committed Oct 14, 2012
1 parent 6490794 commit 5408c09
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 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: 5230429ab1c20c348e17069230c24db8a6b53ca3
refs/heads/master: 2f12af35a988082700373acdebe049dfebaf49b6
1 change: 1 addition & 0 deletions trunk/arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ config SPARC64
select HAVE_C_RECORDMCOUNT
select NO_BOOTMEM
select GENERIC_KERNEL_THREAD
select GENERIC_KERNEL_EXECVE

config ARCH_DEFCONFIG
string
Expand Down
22 changes: 0 additions & 22 deletions trunk/arch/sparc/kernel/sys_sparc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,25 +729,3 @@ SYSCALL_DEFINE5(rt_sigaction, int, sig, const struct sigaction __user *, act,

return ret;
}

/*
* Do a system call from kernel instead of calling sys_execve so we
* end up with proper pt_regs.
*/
int kernel_execve(const char *filename,
const char *const argv[],
const char *const envp[])
{
long __res;
register long __g1 __asm__ ("g1") = __NR_execve;
register long __o0 __asm__ ("o0") = (long)(filename);
register long __o1 __asm__ ("o1") = (long)(argv);
register long __o2 __asm__ ("o2") = (long)(envp);
asm volatile ("t 0x6d\n\t"
"sub %%g0, %%o0, %0\n\t"
"movcc %%xcc, %%o0, %0\n\t"
: "=r" (__res), "=&r" (__o0)
: "1" (__o0), "r" (__o1), "r" (__o2), "r" (__g1)
: "cc");
return __res;
}
10 changes: 5 additions & 5 deletions trunk/arch/sparc/kernel/syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ ret_from_syscall:
call schedule_tail
mov %g7, %o0
ldx [%sp + PTREGS_OFF + PT_V9_I0], %o0
brnz,a,pt %o0, ret_sys_call
brnz,pt %o0, ret_sys_call
ldx [%g6 + TI_FLAGS], %l0
ldx [%sp + PTREGS_OFF + PT_V9_G1], %l0
call %l0
ldx [%sp + PTREGS_OFF + PT_V9_G1], %l1
call %l1
ldx [%sp + PTREGS_OFF + PT_V9_G2], %o0
call do_exit ! will not return
mov 0,%o0
ba,pt %xcc, ret_sys_call
mov 0, %o0

.globl sparc_exit
.type sparc_exit,#function
Expand Down

0 comments on commit 5408c09

Please sign in to comment.