reg.h revision 1.16
1147072Sbrooks/* $NetBSD: reg.h,v 1.16 2016/01/24 16:13:19 christos Exp $ */ 2147072Sbrooks 3147072Sbrooks/* 4147072Sbrooks * Copyright (c) 1988 University of Utah. 5147072Sbrooks * Copyright (c) 1992, 1993 6147072Sbrooks * The Regents of the University of California. All rights reserved. 7147072Sbrooks * 8147072Sbrooks * This code is derived from software contributed to Berkeley by 9147072Sbrooks * the Systems Programming Group of the University of Utah Computer 10147072Sbrooks * Science Department and Ralph Campbell. 11147072Sbrooks * 12147072Sbrooks * Redistribution and use in source and binary forms, with or without 13147072Sbrooks * modification, are permitted provided that the following conditions 14147072Sbrooks * are met: 15147072Sbrooks * 1. Redistributions of source code must retain the above copyright 16147072Sbrooks * notice, this list of conditions and the following disclaimer. 17147072Sbrooks * 2. Redistributions in binary form must reproduce the above copyright 18147072Sbrooks * notice, this list of conditions and the following disclaimer in the 19147072Sbrooks * documentation and/or other materials provided with the distribution. 20147072Sbrooks * 3. Neither the name of the University nor the names of its contributors 21147072Sbrooks * may be used to endorse or promote products derived from this software 22147072Sbrooks * without specific prior written permission. 23147072Sbrooks * 24147072Sbrooks * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25147072Sbrooks * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26147072Sbrooks * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27147072Sbrooks * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28147072Sbrooks * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29147072Sbrooks * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30147072Sbrooks * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31147072Sbrooks * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32147072Sbrooks * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33147072Sbrooks * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34147072Sbrooks * SUCH DAMAGE. 35147072Sbrooks * 36147072Sbrooks * from: Utah Hdr: reg.h 1.1 90/07/09 37147072Sbrooks * 38147072Sbrooks * @(#)reg.h 8.2 (Berkeley) 1/11/94 39147072Sbrooks */ 40147072Sbrooks 41147072Sbrooks#ifndef _MIPS_REG_H_ 42147072Sbrooks#define _MIPS_REG_H_ 43147072Sbrooks 44147072Sbrooks 45147072Sbrooksstruct reg { 46147072Sbrooks __register_t r_regs[38]; 47147072Sbrooks}; 48147072Sbrooks 49147072Sbrooksstruct fpreg { 50147072Sbrooks __fpregister_t r_regs[33]; 51147072Sbrooks}; 52147072Sbrooks 53147072Sbrooksstruct dspreg { 54147072Sbrooks __register_t r_regs[8]; 55147072Sbrooks}; 56147072Sbrooks 57147072Sbrooks#if defined(__mips_n32) || defined(__mips_n64) 58147072Sbrooksstruct fpreg_oabi { 59147072Sbrooks int32_t r_regs[33]; 60147072Sbrooks}; 61147072Sbrooks#endif 62147072Sbrooks 63147072Sbrooks#endif /*_MIPS_REG_H_*/ 64147072Sbrooks