/* @(#)lwpmachdep1.h 1.8 88/09/28 */
/* Copyright (C) 1987. Sun Microsystems, Inc. */

#ifndef _lwp_sparc_machdep_h
#define _lwp_sparc_machdep_h

#ifndef _lwp_wait
#define _lwp_wait
#include <sys/wait.h>
#endif _lwp_wait
#include <sys/time.h>
#include <sys/resource.h>

/* info from SIGCHLD event */
typedef struct sigchldev_t {
	eventinfo_t sigchld_event;      /* general event info, MUST BE FIRST */
	int sigchld_pid;                /* pid of process that changed */
	union wait sigchld_status;      /* status from wait3 */
	struct rusage sigchld_rusage;   /* rusage from wait3 */
} sigchldev_t;

/* registers saved in the context. Locals and %i's are found on the stack. */
typedef struct machstate_t {
	union {
		double sparc_gdregs[4];	
		int sparc_gsregs[8];
	} sparc_globals;	/* g0-g7 */
	union {
		double sparc_odregs[4];
		int sparc_osregs[8];
	} sparc_oregs;	/* o0-o7 */
	int sparc_pc;
	int sparc_npc;
	int sparc_psr;
	int sparc_y;
} machstate_t;

#endif /*!_lwp_sparc_machdep_h*/
#ifndef	MINSTACKSZ
#define	MINSTACKSZ	1280
#endif	MINSTACKSZ
