https://github.com/torvalds/linux
Raw File
Tip revision: 959f58544b7f20c92d5eb43d1232c96c15c01bfb authored by Linus Torvalds on 27 October 2013, 23:12:03 UTC
Linux 3.12-rc7
Tip revision: 959f585
stub_segv.c
/*
 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
 * Licensed under the GPL
 */

#include <sysdep/stub.h>
#include <sysdep/faultinfo.h>
#include <sysdep/mcontext.h>

void __attribute__ ((__section__ (".__syscall_stub")))
stub_segv_handler(int sig, siginfo_t *info, void *p)
{
	struct ucontext *uc = p;

	GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA),
			      &uc->uc_mcontext);
	trap_myself();
}

back to top