xref: /netbsd-src/sys/arch/ia64/include/reg.h (revision ba7cbe760f305c166def57a96d6f2512f1d23ae8)
1*ba7cbe76Scherry /*	$NetBSD: reg.h,v 1.1 2006/04/07 14:21:18 cherry Exp $	*/
2*ba7cbe76Scherry 
3*ba7cbe76Scherry /*-
4*ba7cbe76Scherry  * Copyright (c) 2000 Doug Rabson
5*ba7cbe76Scherry  * All rights reserved.
6*ba7cbe76Scherry  *
7*ba7cbe76Scherry  * Redistribution and use in source and binary forms, with or without
8*ba7cbe76Scherry  * modification, are permitted provided that the following conditions
9*ba7cbe76Scherry  * are met:
10*ba7cbe76Scherry  * 1. Redistributions of source code must retain the above copyright
11*ba7cbe76Scherry  *    notice, this list of conditions and the following disclaimer.
12*ba7cbe76Scherry  * 2. Redistributions in binary form must reproduce the above copyright
13*ba7cbe76Scherry  *    notice, this list of conditions and the following disclaimer in the
14*ba7cbe76Scherry  *    documentation and/or other materials provided with the distribution.
15*ba7cbe76Scherry  *
16*ba7cbe76Scherry  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17*ba7cbe76Scherry  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*ba7cbe76Scherry  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*ba7cbe76Scherry  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*ba7cbe76Scherry  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*ba7cbe76Scherry  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*ba7cbe76Scherry  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*ba7cbe76Scherry  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*ba7cbe76Scherry  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*ba7cbe76Scherry  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*ba7cbe76Scherry  * SUCH DAMAGE.
27*ba7cbe76Scherry  *
28*ba7cbe76Scherry  *	$FreeBSD$
29*ba7cbe76Scherry  */
30*ba7cbe76Scherry 
31*ba7cbe76Scherry #ifndef _IA64_REG_H_
32*ba7cbe76Scherry #define _IA64_REG_H_
33*ba7cbe76Scherry 
34*ba7cbe76Scherry #include <machine/_regset.h>
35*ba7cbe76Scherry 
36*ba7cbe76Scherry struct reg {
37*ba7cbe76Scherry 	struct _special		r_special;
38*ba7cbe76Scherry 	struct _callee_saved	r_preserved;
39*ba7cbe76Scherry 	struct _caller_saved	r_scratch;
40*ba7cbe76Scherry };
41*ba7cbe76Scherry 
42*ba7cbe76Scherry struct fpreg {
43*ba7cbe76Scherry 	struct _callee_saved_fp	fpr_preserved;
44*ba7cbe76Scherry 	struct _caller_saved_fp	fpr_scratch;
45*ba7cbe76Scherry 	struct _high_fp		fpr_high;
46*ba7cbe76Scherry };
47*ba7cbe76Scherry 
48*ba7cbe76Scherry struct dbreg {
49*ba7cbe76Scherry 	unsigned long	dbr_data[8];
50*ba7cbe76Scherry 	unsigned long	dbr_inst[8];
51*ba7cbe76Scherry };
52*ba7cbe76Scherry 
53*ba7cbe76Scherry #endif /* _IA64_REG_H_ */
54