1*1ba82a13SAndy Fiddaman/*
2*1ba82a13SAndy Fiddaman * This file and its contents are supplied under the terms of the
3*1ba82a13SAndy Fiddaman * Common Development and Distribution License ("CDDL"), version 1.0.
4*1ba82a13SAndy Fiddaman * You may only use this file in accordance with the terms of version
5*1ba82a13SAndy Fiddaman * 1.0 of the CDDL.
6*1ba82a13SAndy Fiddaman *
7*1ba82a13SAndy Fiddaman * A full copy of the text of the CDDL should have accompanied this
8*1ba82a13SAndy Fiddaman * source.  A copy of the CDDL is also available via the Internet at
9*1ba82a13SAndy Fiddaman * http://www.illumos.org/license/CDDL.
10*1ba82a13SAndy Fiddaman */
11*1ba82a13SAndy Fiddaman
12*1ba82a13SAndy Fiddaman/*
13*1ba82a13SAndy Fiddaman * Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
14*1ba82a13SAndy Fiddaman */
15*1ba82a13SAndy Fiddaman
16*1ba82a13SAndy Fiddaman	.file	"unwind_wrap.s"
17*1ba82a13SAndy Fiddaman	.global	__Unwind_RaiseException_Backend
18*1ba82a13SAndy Fiddaman
19*1ba82a13SAndy Fiddaman#include "SYS.h"
20*1ba82a13SAndy Fiddaman
21*1ba82a13SAndy Fiddaman	ANSI_PRAGMA_WEAK2(_SUNW_Unwind_RaiseException,_Unwind_RaiseException,
22*1ba82a13SAndy Fiddaman	    function)
23*1ba82a13SAndy Fiddaman
24*1ba82a13SAndy Fiddaman	ENTRY(_Unwind_RaiseException)
25*1ba82a13SAndy Fiddaman	pushq	%rbp
26*1ba82a13SAndy Fiddaman	movq	%rsp,%rbp
27*1ba82a13SAndy Fiddaman	andq	$-STACK_ALIGN, %rsp	/* adjust stack alignment */
28*1ba82a13SAndy Fiddaman	call	__Unwind_RaiseException_Backend
29*1ba82a13SAndy Fiddaman	leave
30*1ba82a13SAndy Fiddaman	ret
31*1ba82a13SAndy Fiddaman	SET_SIZE(_Unwind_RaiseException)