Xenomai  3.0.8
mayday.h
1 /*
2  * Copyright (C) 2009, 2012 Philippe Gerum <rpm@xenomai.org>.
3  *
4  * Xenomai is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Xenomai is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Xenomai; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17  * 02111-1307, USA.
18  */
19 #ifndef _COBALT_ASM_GENERIC_MAYDAY_H
20 #define _COBALT_ASM_GENERIC_MAYDAY_H
21 
22 struct xnarchtcb;
23 struct task_struct;
24 struct pt_regs;
25 
26 int xnarch_init_mayday(void);
27 
28 void xnarch_cleanup_mayday(void);
29 
30 void *xnarch_get_mayday_page(void);
31 
32 void xnarch_handle_mayday(struct xnarchtcb *tcb,
33  struct pt_regs *regs,
34  unsigned long tramp);
35 
36 void xnarch_fixup_mayday(struct xnarchtcb *tcb,
37  struct pt_regs *regs);
38 
39 #endif /* !_COBALT_ASM_GENERIC_MAYDAY_H */