Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18917
b: refs/heads/master
c: 2c332a2
h: refs/heads/master
i:
  18915: a5cb504
v: v3
  • Loading branch information
Bodo Stroesser authored and Linus Torvalds committed Jan 19, 2006
1 parent f007c97 commit 6f5536c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 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: cff65c4f0ea6662124bbb7bf3806e5df1c6d735d
refs/heads/master: 2c332a251302873cf8301c2aad27737b6df70255
5 changes: 2 additions & 3 deletions trunk/arch/um/kernel/time_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ void timer_irq(union uml_pt_regs *regs)
}
}

void boot_timer_handler(int sig)
void do_boot_timer_handler(struct sigcontext * sc)
{
struct pt_regs regs;

CHOOSE_MODE((void)
(UPT_SC(&regs.regs) = (struct sigcontext *) (&sig + 1)),
CHOOSE_MODE((void) (UPT_SC(&regs.regs) = sc),
(void) (regs.regs.skas.is_user = 0));
do_timer(&regs);
}
Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/um/os-Linux/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <string.h>
#include <sys/mman.h>
#include "user_util.h"
#include "kern_util.h"
#include "user.h"
#include "signal_kern.h"
#include "sysdep/sigcontext.h"
Expand Down Expand Up @@ -49,6 +48,17 @@ void alarm_handler(ARCH_SIGHDLR_PARAM)
switch_timers(1);
}

extern void do_boot_timer_handler(struct sigcontext * sc);

void boot_timer_handler(ARCH_SIGHDLR_PARAM)
{
struct sigcontext *sc;

ARCH_GET_SIGCONTEXT(sc, sig);

do_boot_timer_handler(sc);
}

void set_sigstack(void *sig_stack, int size)
{
stack_t stack = ((stack_t) { .ss_flags = 0,
Expand Down

0 comments on commit 6f5536c

Please sign in to comment.