asm_subr.s revision 35e6f27ad0d19ae8ac48ddcbccbe1af717832f29
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
.file "asm_subr.s"
#include "SYS.h"
#include <../assym.h>
#ifdef __sparcv9
#define GREGSIZE 8
#else
#define GREGSIZE 4
#endif
! void _fetch_globals(greg_t *);
#ifdef __sparcv9
#else
#endif
/*
* __sighndlr(int sig, siginfo_t *si, ucontex_t *uc, void (*hndlr)())
*
* This is called from sigacthandler() for the entire purpose of
* communicating the ucontext to java's stack tracing functions.
*/
/*
* int _sigsetjmp(sigjmp_buf env, int savemask)
*
* This version is faster than the old non-threaded version because we
* don't normally have to call __getcontext() to get the signal mask.
* (We have a copy of it in the ulwp_t structure.)
*/
add %o7, 8, %o2 ! calculate caller's return pc
stn %fp, [%o0 + SJS_FP] ! save caller's return linkage