Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356682
b: refs/heads/master
c: ac41614
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Feb 3, 2013
1 parent c6500d4 commit ef5d7a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 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: 6bc43c9ee92b4146b56e8758cec73f0990410326
refs/heads/master: ac416143b0b4f13ff8f7beb021916e1d714dd87b
14 changes: 6 additions & 8 deletions trunk/arch/h8300/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ struct rt_sigframe
} __attribute__((aligned(2),packed));

static inline int
restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc,
int *pd0)
restore_sigcontext(struct sigcontext *usc, int *pd0)
{
struct pt_regs *regs = current_pt_regs();
int err = 0;
unsigned int ccr;
unsigned int usp;
Expand Down Expand Up @@ -160,9 +160,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc,
return err;
}

asmlinkage int do_sigreturn(unsigned long __unused,...)
asmlinkage int sys_sigreturn(void)
{
struct pt_regs *regs = (struct pt_regs *) (&__unused - 1);
unsigned long usp = rdusp();
struct sigframe *frame = (struct sigframe *)(usp - 4);
sigset_t set;
Expand All @@ -178,7 +177,7 @@ asmlinkage int do_sigreturn(unsigned long __unused,...)

set_current_blocked(&set);

if (restore_sigcontext(regs, &frame->sc, &er0))
if (restore_sigcontext(&frame->sc, &er0))
goto badframe;
return er0;

Expand All @@ -187,9 +186,8 @@ asmlinkage int do_sigreturn(unsigned long __unused,...)
return 0;
}

asmlinkage int do_rt_sigreturn(unsigned long __unused,...)
asmlinkage int sys_rt_sigreturn(void)
{
struct pt_regs *regs = (struct pt_regs *) &__unused;
unsigned long usp = rdusp();
struct rt_sigframe *frame = (struct rt_sigframe *)(usp - 4);
sigset_t set;
Expand All @@ -202,7 +200,7 @@ asmlinkage int do_rt_sigreturn(unsigned long __unused,...)

set_current_blocked(&set);

if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &er0))
if (restore_sigcontext(&frame->uc.uc_mcontext, &er0))
goto badframe;

if (restore_altstack(&frame->uc.uc_stack))
Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/h8300/kernel/syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -334,18 +334,3 @@ SYMBOL_NAME_LABEL(sys_call_table)
.long SYMBOL_NAME(sys_getcpu)
.long SYMBOL_NAME(sys_ni_syscall) /* sys_epoll_pwait */
.long SYMBOL_NAME(sys_setns) /* 320 */

.macro call_sp addr
mov.l #SYMBOL_NAME(\addr),er6
bra SYMBOL_NAME(syscall_trampoline):8
.endm

SYMBOL_NAME_LABEL(sys_sigreturn)
call_sp do_sigreturn

SYMBOL_NAME_LABEL(sys_rt_sigreturn)
call_sp do_rt_sigreturn

SYMBOL_NAME_LABEL(syscall_trampoline)
mov.l sp,er0
jmp @er6

0 comments on commit ef5d7a9

Please sign in to comment.