blob: 9326d182e9e5d8d0f8b0f2511f67299a8f3eb7d3 [file] [log] [blame]
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07001/*
2 * Copyright (C) 2004-2006 Atmel Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8#ifndef __ASM_AVR32_SIGNAL_H
9#define __ASM_AVR32_SIGNAL_H
10
David Howells83b9d3a2012-10-10 12:09:31 +010011#include <uapi/asm/signal.h>
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070012
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070013/* Most things should be clean enough to redefine this at will, if care
14 is taken to make libc match. */
15
16#define _NSIG 64
17#define _NSIG_BPW 32
18#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
19
20typedef unsigned long old_sigset_t; /* at least 32 bits */
21
22typedef struct {
23 unsigned long sig[_NSIG_WORDS];
24} sigset_t;
25
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070026struct sigaction {
27 __sighandler_t sa_handler;
28 unsigned long sa_flags;
29 __sigrestore_t sa_restorer;
30 sigset_t sa_mask; /* mask last for extensibility */
31};
32
33struct k_sigaction {
34 struct sigaction sa;
35};
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070036
37#include <asm/sigcontext.h>
38#undef __HAVE_ARCH_SIG_BITOPS
39
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070040#endif