summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/trap.c
blob: 6e7841c23d265d71f609f9b2ca36b67e1a9b8de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
 * Licensed under the GPL
 */

#include <setjmp.h>
#include <signal.h>
#include "kern_util.h"
#include "user_util.h"
#include "os.h"

void do_longjmp(void *b, int val)
{
	sigjmp_buf *buf = b;

	siglongjmp(*buf, val);
}