version 1.1.1.1, 2008/06/03 10:38:50 |
version 1.1.1.1.2.1, 2008/08/13 17:12:41 |
|
|
#include <signal.h> |
#include <signal.h> |
#include <stdlib.h> |
#include <stdlib.h> |
|
|
|
void __exception_init(void); |
|
void __exception_exit(void); |
|
|
struct sigaction __sig_act[NSIG]; |
struct sigaction __sig_act[NSIG]; |
sigset_t __sig_mask; |
sigset_t __sig_mask; |
sigset_t __sig_pending; |
sigset_t __sig_pending; |
|
|
* Exception handler for signal emulation |
* Exception handler for signal emulation |
*/ |
*/ |
static void |
static void |
__exception_handler(int excpt, void *regs) |
__exception_handler(int excpt) |
{ |
{ |
|
|
if (excpt > 0 && excpt <= NSIG) { |
if (excpt > 0 && excpt <= NSIG) { |
|
|
SIGNAL_UNLOCK(); |
SIGNAL_UNLOCK(); |
} |
} |
__sig_flush(); |
__sig_flush(); |
exception_return(regs); |
exception_return(); |
} |
} |
|
|
/* |
/* |