Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17786
b: refs/heads/master
c: 01829e7
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Jan 10, 2006
1 parent 2e1812c commit 5a260b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afc7cd8950572786c87ad081d8e65e5ea58b563c
refs/heads/master: 01829e7212dd9ba3fa68bf8afffc9a175c44cb04
8 changes: 8 additions & 0 deletions trunk/arch/m68knommu/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext *usc, void *fp,
regs->d1 = context.sc_d1;
regs->a0 = context.sc_a0;
regs->a1 = context.sc_a1;
((struct switch_stack *)regs - 1)->a5 = context.sc_a5;
regs->sr = (regs->sr & 0xff00) | (context.sc_sr & 0xff);
regs->pc = context.sc_pc;
regs->orig_d0 = -1; /* disable syscall checks */
Expand Down Expand Up @@ -498,6 +499,7 @@ static void setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs,
sc->sc_d1 = regs->d1;
sc->sc_a0 = regs->a0;
sc->sc_a1 = regs->a1;
sc->sc_a5 = ((struct switch_stack *)regs - 1)->a5;
sc->sc_sr = regs->sr;
sc->sc_pc = regs->pc;
sc->sc_formatvec = regs->format << 12 | regs->vector;
Expand Down Expand Up @@ -597,6 +599,9 @@ static void setup_frame (int sig, struct k_sigaction *ka,
/* Set up registers for signal handler */
wrusp ((unsigned long) frame);
regs->pc = (unsigned long) ka->sa.sa_handler;
((struct switch_stack *)regs - 1)->a5 = current->mm->start_data;
regs->format = 0x4; /*set format byte to make stack appear modulo 4
which it will be when doing the rte */

adjust_stack:
/* Prepare to skip over the extra stuff in the exception frame. */
Expand Down Expand Up @@ -664,6 +669,9 @@ static void setup_rt_frame (int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up registers for signal handler */
wrusp ((unsigned long) frame);
regs->pc = (unsigned long) ka->sa.sa_handler;
((struct switch_stack *)regs - 1)->a5 = current->mm->start_data;
regs->format = 0x4; /*set format byte to make stack appear modulo 4
which it will be when doing the rte */

adjust_stack:
/* Prepare to skip over the extra stuff in the exception frame. */
Expand Down

0 comments on commit 5a260b0

Please sign in to comment.