Xenomai 3.3.2
Loading...
Searching...
No Matches
syscall.h
1/*
2 * Copyright (C) 2014 Philippe Gerum <rpm@xenomai.org>.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18#ifndef _COBALT_POSIX_SYSCALL_H
19#define _COBALT_POSIX_SYSCALL_H
20
21#include <cobalt/uapi/syscall.h>
22
23struct pt_regs;
24
25/* Regular (native) syscall handler implementation. */
26#define COBALT_SYSCALL(__name, __mode, __args) \
27 long CoBaLt_ ## __name __args
28
29/* Regular (native) syscall handler declaration. */
30#define COBALT_SYSCALL_DECL(__name, __args) \
31 long CoBaLt_ ## __name __args
32
33#include <asm-generic/xenomai/syscall32.h>
34
35int handle_head_syscall(bool caller_is_relaxed,
36 struct pt_regs *regs);
37
38int handle_root_syscall(struct pt_regs *regs);
39
40#endif /* !_COBALT_POSIX_SYSCALL_H */