/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
.file "asm_subr.s"
#include <SYS.h>
#include <../assym.h>
/*
* This is where execution resumes when a thread created with
* thr_create() or pthread_create() returns (see setup_context()).
* We pass the (void *) return value to _thrp_terminate().
*/
RET /* actually, never returns */
/* All we need to do now is (carefully) call lwp_exit(). */
RET /* if we return, it is very bad */
/*
* __sighndlr(int sig, siginfo_t *si, ucontext_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.)
*/
#error "sigjmp_buf is too small to contain a ucontext_t"
#else
#if defined(__GNUC_AS__)
#else
#endif
/* construct a complete gregset_t for __csigsetjmp */
#endif /* SIZEOF_SIGJMP_BUF < SIZEOF_UCONTEXT_T */