[PATCH] uml: change interface to boot_timer_handler
Current implementation of boot_timer_handler isn't usable for s390. So I changed its name to do_boot_timer_handler, taking (struct sigcontext *)sc as argument. do_boot_timer_handler is called from new boot_timer_handler() in arch/um/os-Linux/signal.c, which uses the same mechanisms as other signal handler to find out sigcontext pointer. Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
cff65c4f0e
commit
2c332a2513
@@ -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(®s.regs) = (struct sigcontext *) (&sig + 1)),
|
||||
CHOOSE_MODE((void) (UPT_SC(®s.regs) = sc),
|
||||
(void) (regs.regs.skas.is_user = 0));
|
||||
do_timer(®s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user