summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/sys-x86_64/signal.c
blob: 82a388822cd35c55b006f9dbe0d3f1230b83b620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * 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);
}
OpenPOWER on IntegriCloud