android_kernel_cmhtcleo/arch/um/os-Linux/sys-x86_64/signal.c

17 lines
332 B
C
Raw Normal View History

2010-08-27 09:19:57 +00:00
/*
* Copyright (C) 2006 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#include <signal.h>
extern void handle_signal(int sig, struct sigcontext *sc);
void hard_handler(int sig)
{
struct ucontext *uc;
asm("movq %%rdx, %0" : "=r" (uc));
handle_signal(sig, (struct sigcontext *) &uc->uc_mcontext);
}