2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 2N/A * Top-of-stack must be rounded down to STACK_ALIGN and 2N/A * there must be a minimum frame for the register window. 2N/A * This will return NULL if the kernel cannot allocate 2N/A * a page for the top page of the stack. This will cause 2N/A * thr_create(), pthread_create() or pthread_attr_setstack() 2N/A * to fail, passing the problem up to the application. 2N/A /* clear the context */ 2N/A * Clear the top stack frame. 2N/A * If this fails, pass the problem up to the application. 2N/A /* fill in registers of interest */ 2N/A * Machine-dependent startup code for a newly-created thread. 2N/A /* signals have been deferred until now */ 2N/A return (
NULL);
/* cancelled by pthread_create() */ 2N/A#
endif /* __sparcv9 */ 2N/A * bp->sjs_sp, bp->sjs_pc, bp->sjs_fp and bp->sjs_i7 are already set. 2N/A * Also, if we are running in 64-bit mode (__sparcv9), 2N/A * then bp->sjs_asi and bp->sjs_fprs are already set.