pcb.h revision 07a48826732249fcd3aa8dd53c8389595e9f1fbc
/*
* 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.
*/
#ifndef _SYS_PCB_H
#define _SYS_PCB_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Sun software process control block
*/
#ifndef _ASM
typedef struct pcb {
int pcb_flags; /* various state flags; cleared on fork */
/* deliberately restricted to 32 bits */
/* because only used for SunOS programs */
pcb_xregstat; /* state of contents of pcb_xregs */
int pcb_step; /* used while single-stepping */
} pcb_t;
#endif /* ! _ASM */
/* pcb_flags */
/* pcb_step */
#define STEP_NONE 0 /* no single step */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PCB_H */