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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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