xref: /netbsd-src/sys/lib/libkern/arch/arm/unwind_stub.c (revision 99a7d6ba8eae5900c6edb4c9872f60adde47e268)
10009e83bSmatt /*-
20009e83bSmatt  * Copyright (c) 2013 The NetBSD Foundation, Inc.
30009e83bSmatt  * All rights reserved.
40009e83bSmatt  *
50009e83bSmatt  * This code is derived from software contributed to The NetBSD Foundation
60009e83bSmatt  * by Matt Thomas of 3am Software Foundry.
70009e83bSmatt  *
80009e83bSmatt  * Redistribution and use in source and binary forms, with or without
90009e83bSmatt  * modification, are permitted provided that the following conditions
100009e83bSmatt  * are met:
110009e83bSmatt  * 1. Redistributions of source code must retain the above copyright
120009e83bSmatt  *    notice, this list of conditions and the following disclaimer.
130009e83bSmatt  * 2. Redistributions in binary form must reproduce the above copyright
140009e83bSmatt  *    notice, this list of conditions and the following disclaimer in the
150009e83bSmatt  *    documentation and/or other materials provided with the distribution.
160009e83bSmatt  *
170009e83bSmatt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
180009e83bSmatt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
190009e83bSmatt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
200009e83bSmatt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
210009e83bSmatt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
220009e83bSmatt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
230009e83bSmatt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
240009e83bSmatt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
250009e83bSmatt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
260009e83bSmatt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
270009e83bSmatt  * POSSIBILITY OF SUCH DAMAGE.
280009e83bSmatt  */
290009e83bSmatt 
300009e83bSmatt #include <sys/cdefs.h>
31*99a7d6baSmatt __KERNEL_RCSID(1, "$NetBSD: unwind_stub.c,v 1.2 2013/08/12 23:42:14 matt Exp $");
320009e83bSmatt 
330009e83bSmatt #include <arm/ehabi.h>
340009e83bSmatt 
350009e83bSmatt static _Unwind_Reason_Code __used
__aeabi_unwind_cpp_stub(_Unwind_State state,_Unwind_Control_Block * ucbp,_Unwind_Context * context)360009e83bSmatt __aeabi_unwind_cpp_stub(_Unwind_State state, _Unwind_Control_Block *ucbp,
370009e83bSmatt     _Unwind_Context *context)
380009e83bSmatt {
390009e83bSmatt 	return _URC_FAILURE;
400009e83bSmatt }
410009e83bSmatt 
42*99a7d6baSmatt __weak_alias(__aeabi_unwind_cpp_pr0, __aeabi_unwind_cpp_stub)
43*99a7d6baSmatt __weak_alias(__aeabi_unwind_cpp_pr1, __aeabi_unwind_cpp_stub)
44*99a7d6baSmatt __weak_alias(__aeabi_unwind_cpp_pr2, __aeabi_unwind_cpp_stub)
45