Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
0003  * Licensed under the GPL
0004  */
0005 
0006 #include <sysdep/stub.h>
0007 #include <sysdep/faultinfo.h>
0008 #include <sysdep/mcontext.h>
0009 #include <sys/ucontext.h>
0010 
0011 void __attribute__ ((__section__ (".__syscall_stub")))
0012 stub_segv_handler(int sig, siginfo_t *info, void *p)
0013 {
0014     struct faultinfo *f = get_stub_page();
0015     ucontext_t *uc = p;
0016 
0017     GET_FAULTINFO_FROM_MC(*f, &uc->uc_mcontext);
0018     trap_myself();
0019 }
0020