/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
*/
/*
* Install process context ops for the current process.
*/
void
proc_t *p,
void *arg,
void (*save)(void *),
void (*restore)(void *),
void (*fork)(void *, void *),
void (*exit)(void *),
void (*free)(void *, int))
{
}
/*
* Remove a process context ops from the current process.
*/
int
proc_t *p,
void *arg,
void (*save)(void *),
void (*restore)(void *),
void (*fork)(void *, void *),
void (*exit)(void *),
void (*free)(void *, int))
{
if (prev_pctx)
else
return (1);
}
}
return (0);
}
void
{
}
void
{
}
void
{
}
/*
* needed when an LWP in the process leaves the processor for the last
* time. This routine is not intended to deal with freeing memory; freepctx()
* is used for that purpose during proc_exit(). This routine is provided to
* allow for clean-up that can't wait until thread_free().
*/
void
{
}
/*
* freepctx is called from proc_exit() to get rid of the actual context ops.
*/
void
{
}
}
{
}
void
{
}