OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i960/] [signal.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _I960_SIGNAL_H
2
#define _I960_SIGNAL_H
3
 
4
typedef unsigned long sigset_t;         /* at least 32 bits */
5
 
6
/* An evil possibility: 31 would let us store a signal_struct within 508 bytes */
7
#define _NSIG             32
8
#define NSIG            _NSIG
9
 
10
#define SIGHUP           1
11
#define SIGINT           2
12
#define SIGQUIT          3
13
#define SIGILL           4
14
#define SIGTRAP          5
15
#define SIGABRT          6
16
#define SIGIOT           6
17
#define SIGBUS           7
18
#define SIGFPE           8
19
#define SIGKILL          9
20
#define SIGUSR1         10
21
#define SIGSEGV         11
22
#define SIGUSR2         12
23
#define SIGPIPE         13
24
#define SIGALRM         14
25
#define SIGTERM         15
26
#define SIGSTKFLT       16
27
#define SIGCHLD         17
28
#define SIGCONT         18
29
#define SIGSTOP         19
30
#define SIGTSTP         20
31
#define SIGTTIN         21
32
#define SIGTTOU         22
33
#define SIGURG          23
34
#define SIGXCPU         24
35
#define SIGXFSZ         25
36
#define SIGVTALRM       26
37
#define SIGPROF         27
38
#define SIGWINCH        28
39
#define SIGIO           29
40
#define SIGPOLL         SIGIO
41
/*
42
#define SIGLOST         29
43
*/
44
#define SIGPWR          30
45
 
46
#define SIGUNUSED       31
47
 
48
/*
49
 * sa_flags values: SA_STACK is not currently supported, but will allow the
50
 * usage of signal stacks by using the (now obsolete) sa_restorer field in
51
 * the sigaction structure as a stack pointer. This is now possible due to
52
 * the changes in signal handling. LBT 010493.
53
 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
54
 * SA_RESTART flag to get restarting signals (which were the default long ago)
55
 * SA_SHIRQ flag is for shared interrupt support on PCI and EISA.
56
 */
57
#define SA_NOCLDSTOP    1
58
#define SA_SHIRQ        0x04000000
59
#define SA_STACK        0x08000000
60
#define SA_RESTART      0x10000000
61
#define SA_INTERRUPT    0x20000000
62
#define SA_NOMASK       0x40000000
63
#define SA_ONESHOT      0x80000000
64
 
65
#ifdef __KERNEL__
66
/*
67
 * These values of sa_flags are used only by the kernel as part of the
68
 * irq handling routines.
69
 *
70
 * SA_INTERRUPT is also used by the irq handling routines.
71
 */
72
#define SA_PROBE SA_ONESHOT
73
#define SA_SAMPLE_RANDOM SA_RESTART
74
#endif
75
 
76
#define SIG_BLOCK          0    /* for blocking signals */
77
#define SIG_UNBLOCK        1    /* for unblocking signals */
78
#define SIG_SETMASK        2    /* for setting the signal mask */
79
 
80
/* Type of a signal handler.  */
81
typedef void (*__sighandler_t)(int);
82
 
83
#define SIG_DFL ((__sighandler_t)0)     /* default signal handling */
84
#define SIG_IGN ((__sighandler_t)1)     /* ignore signal */
85
#define SIG_ERR ((__sighandler_t)-1)    /* error return from signal */
86
 
87
struct sigaction {
88
        __sighandler_t sa_handler;
89
        sigset_t sa_mask;
90
        unsigned long sa_flags;
91
        void (*sa_restorer)(void);
92
};
93
 
94
#ifdef __KERNEL__
95
#include <asm/sigcontext.h>
96
#endif
97
 
98
#endif /* _I960_SIGNAL_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.