aeabi_unwind.c revision 248366
1248366Sandrew/*
2248366Sandrew * Copyright (C) 2013 Andrew Turner
3248366Sandrew * All rights reserved.
4248366Sandrew *
5248366Sandrew * Redistribution and use in source and binary forms, with or without
6248366Sandrew * modification, are permitted provided that the following conditions
7248366Sandrew * are met:
8248366Sandrew * 1. Redistributions of source code must retain the above copyright
9248366Sandrew *    notice, this list of conditions and the following disclaimer.
10248366Sandrew * 2. Redistributions in binary form must reproduce the above copyright
11248366Sandrew *    notice, this list of conditions and the following disclaimer in the
12248366Sandrew *    documentation and/or other materials provided with the distribution.
13248366Sandrew *
14248366Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15248366Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16248366Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17248366Sandrew * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18248366Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19248366Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20248366Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21248366Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22248366Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23248366Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24248366Sandrew * SUCH DAMAGE.
25248366Sandrew *
26248366Sandrew */
27248366Sandrew
28248366Sandrew#include <sys/cdefs.h>
29248366Sandrew__FBSDID("$FreeBSD: head/sys/libkern/arm/aeabi_unwind.c 248366 2013-03-16 04:06:49Z andrew $");
30248366Sandrew
31248366Sandrew#include <sys/types.h>
32248366Sandrew#include <sys/systm.h>
33248366Sandrew
34248366Sandrew#ifdef __ARM_EABI__
35248366Sandrew/* We need to provide these functions never call them */
36248366Sandrewvoid __aeabi_unwind_cpp_pr0(void);
37248366Sandrewvoid __aeabi_unwind_cpp_pr1(void);
38248366Sandrewvoid __aeabi_unwind_cpp_pr2(void);
39248366Sandrew
40248366Sandrewvoid
41248366Sandrew__aeabi_unwind_cpp_pr0(void)
42248366Sandrew{
43248366Sandrew	panic("__aeabi_unwind_cpp_pr0");
44248366Sandrew}
45248366Sandrew
46248366Sandrewvoid
47248366Sandrew__aeabi_unwind_cpp_pr1(void)
48248366Sandrew{
49248366Sandrew	panic("__aeabi_unwind_cpp_pr1");
50248366Sandrew}
51248366Sandrew
52248366Sandrewvoid
53248366Sandrew__aeabi_unwind_cpp_pr2(void)
54248366Sandrew{
55248366Sandrew	panic("__aeabi_unwind_cpp_pr2");
56248366Sandrew}
57248366Sandrew#endif
58248366Sandrew
59