blob: 10e183de96d3af2b27c81919bfb4c85b7df4371e [file] [log] [blame]
Chris Metcalf867e3592010-05-28 23:09:12 -04001/*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
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
6 * as published by the Free Software Foundation, version 2.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
13 */
Chris Metcalf867e3592010-05-28 23:09:12 -040014#ifndef _ASM_TILE_SIGNAL_H
15#define _ASM_TILE_SIGNAL_H
16
David Howellsdf842f72012-10-09 09:47:47 +010017#include <uapi/asm/signal.h>
Chris Metcalf867e3592010-05-28 23:09:12 -040018
David Howells1632b9e2011-12-13 15:07:49 +000019#if !defined(__ASSEMBLY__)
Chris Metcalf74fca9d2010-09-15 11:16:08 -040020struct pt_regs;
Chris Metcalf81711ce2010-12-14 16:07:25 -050021int restore_sigcontext(struct pt_regs *, struct sigcontext __user *);
Chris Metcalf867e3592010-05-28 23:09:12 -040022int setup_sigcontext(struct sigcontext __user *, struct pt_regs *);
Chris Metcalf0707ad32010-06-25 17:04:17 -040023void do_signal(struct pt_regs *regs);
Chris Metcalf571d76a2011-05-16 14:23:44 -040024void signal_fault(const char *type, struct pt_regs *,
25 void __user *frame, int sig);
26void trace_unhandled_signal(const char *type, struct pt_regs *regs,
27 unsigned long address, int signo);
Chris Metcalf867e3592010-05-28 23:09:12 -040028#endif
Chris Metcalf867e3592010-05-28 23:09:12 -040029#endif /* _ASM_TILE_SIGNAL_H */