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: releng/10.3/sys/libkern/arm/aeabi_unwind.c 255939 2013-09-29 15:19:34Z andrew $"); 30248366Sandrew 31248366Sandrew#include <sys/types.h> 32255939Sandrew#ifdef _KERNEL 33248366Sandrew#include <sys/systm.h> 34255939Sandrew#else 35255939Sandrew#define panic(x) (void)0 36255939Sandrew#endif 37248366Sandrew 38248366Sandrew#ifdef __ARM_EABI__ 39248366Sandrew/* We need to provide these functions never call them */ 40248366Sandrewvoid __aeabi_unwind_cpp_pr0(void); 41248366Sandrewvoid __aeabi_unwind_cpp_pr1(void); 42248366Sandrewvoid __aeabi_unwind_cpp_pr2(void); 43248366Sandrew 44248366Sandrewvoid 45248366Sandrew__aeabi_unwind_cpp_pr0(void) 46248366Sandrew{ 47248366Sandrew panic("__aeabi_unwind_cpp_pr0"); 48248366Sandrew} 49248366Sandrew 50248366Sandrewvoid 51248366Sandrew__aeabi_unwind_cpp_pr1(void) 52248366Sandrew{ 53248366Sandrew panic("__aeabi_unwind_cpp_pr1"); 54248366Sandrew} 55248366Sandrew 56248366Sandrewvoid 57248366Sandrew__aeabi_unwind_cpp_pr2(void) 58248366Sandrew{ 59248366Sandrew panic("__aeabi_unwind_cpp_pr2"); 60248366Sandrew} 61248366Sandrew#endif 62248366Sandrew 63