xref: /original-bsd/sys/sparc/include/frame.h (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * All advertising materials mentioning features or use of this software
10  * must display the following acknowledgement:
11  *	This product includes software developed by the University of
12  *	California, Lawrence Berkeley Laboratory.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)frame.h	8.1 (Berkeley) 06/11/93
17  *
18  * from: $Header: frame.h,v 1.5 92/11/26 02:04:35 torek Exp $
19  */
20 
21 /*
22  * Sparc stack frame format.
23  *
24  * Note that the contents of each stack frame may be held only in
25  * machine register windows.  In order to get an accurate picture
26  * of the frame, you must first force the kernel to write any such
27  * windows to the stack.
28  */
29 struct frame {
30 	int	fr_local[8];	/* space to save locals (%l0..%l7) */
31 	int	fr_arg[6];	/* space to save arguments (%i0..%i5) */
32 	struct	frame *fr_fp;	/* space to save frame pointer (%i6) */
33 	int	fr_pc;		/* space to save return pc (%i7) */
34 	/*
35 	 * SunOS reserves another 8 words here; this is pointless
36 	 * but we do it for compatibility.
37 	 */
38 	int	fr_xxx;		/* `structure return pointer' (unused) */
39 	int	fr_argd[6];	/* `arg dump area' (lunacy) */
40 	int	fr_argx[1];	/* arg extension (args 7..n; variable size) */
41 };
42