Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333655
b: refs/heads/master
c: 019f96a
h: refs/heads/master
i:
  333653: e3fdb16
  333651: c209564
  333647: 9e1ca3d
v: v3
  • Loading branch information
Al Viro committed Oct 1, 2012
1 parent 198d5f8 commit 30e237f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 40 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: 460dabab73f2f60198c37ed7bf6d192d23eaa286
refs/heads/master: 019f96a345b6e23d4e0bc2c136ec5f7500b95834
8 changes: 3 additions & 5 deletions trunk/arch/frv/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,12 @@ extern struct task_struct *__kernel_current_task;

/*
* do necessary setup to start up a newly executed thread.
* - need to discard the frame stacked by init() invoking the execve syscall
*/
#define start_thread(_regs, _pc, _usp) \
do { \
__frame = __kernel_frame0_ptr; \
__frame->pc = (_pc); \
__frame->psr &= ~PSR_S; \
__frame->sp = (_usp); \
_regs->pc = (_pc); \
_regs->psr &= ~PSR_S; \
_regs->sp = (_usp); \
} while(0)

/* Free all resources held by a thread. */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/frv/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_KERNEL_EXECVE

/*
* "Conditional" syscalls
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/frv/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ heads-$(CONFIG_MMU) := head-mmu-fr451.o
extra-y:= head.o vmlinux.lds

obj-y := $(heads-y) entry.o entry-table.o break.o switch_to.o \
kernel_execve.o process.o traps.o ptrace.o signal.o dma.o \
process.o traps.o ptrace.o signal.o dma.o \
sys_frv.o time.o setup.o frv_ksyms.o \
debug-stub.o irq.o sleep.o uaccess.o

Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/frv/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,11 @@ ret_from_kernel_thread:
calll @(gr21,gr0)
bra sys_exit

.globl ret_from_kernel_execve
ret_from_kernel_execve:
ori gr28,0,sp
bra __syscall_exit

###################################################################################################
#
# Return to user mode is not as complex as all this looks,
Expand Down
33 changes: 0 additions & 33 deletions trunk/arch/frv/kernel/kernel_execve.S

This file was deleted.

0 comments on commit 30e237f

Please sign in to comment.