1*f75387cbSmillert /* $OpenBSD: sparc64.h,v 1.2 2003/06/03 02:56:08 millert Exp $ */ 290a99070Sart /* $NetBSD: sparc.h,v 1.3 1995/04/19 07:16:25 cgd Exp $ */ 390a99070Sart 490a99070Sart /*- 590a99070Sart * Copyright (c) 1992, 1993 690a99070Sart * The Regents of the University of California. All rights reserved. 790a99070Sart * 890a99070Sart * This software was developed by the Computer Systems Engineering group 990a99070Sart * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 1090a99070Sart * contributed to Berkeley. 1190a99070Sart * 1290a99070Sart * Redistribution and use in source and binary forms, with or without 1390a99070Sart * modification, are permitted provided that the following conditions 1490a99070Sart * are met: 1590a99070Sart * 1. Redistributions of source code must retain the above copyright 1690a99070Sart * notice, this list of conditions and the following disclaimer. 1790a99070Sart * 2. Redistributions in binary form must reproduce the above copyright 1890a99070Sart * notice, this list of conditions and the following disclaimer in the 1990a99070Sart * documentation and/or other materials provided with the distribution. 20*f75387cbSmillert * 3. Neither the name of the University nor the names of its contributors 2190a99070Sart * may be used to endorse or promote products derived from this software 2290a99070Sart * without specific prior written permission. 2390a99070Sart * 2490a99070Sart * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2590a99070Sart * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2690a99070Sart * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2790a99070Sart * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2890a99070Sart * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2990a99070Sart * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3090a99070Sart * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3190a99070Sart * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3290a99070Sart * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3390a99070Sart * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3490a99070Sart * SUCH DAMAGE. 3590a99070Sart * 3690a99070Sart * @(#)sparc.h 8.1 (Berkeley) 6/6/93 3790a99070Sart */ 3890a99070Sart 3990a99070Sart /* 4090a99070Sart * offset (in bytes) of the code from the entry address of a routine. 4190a99070Sart * (see asgnsamples for use and explanation.) 4290a99070Sart */ 4390a99070Sart #define OFFSET_OF_CODE 0 4490a99070Sart #define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT)) 4590a99070Sart 4690a99070Sart enum opermodes { dummy }; 4790a99070Sart typedef enum opermodes operandenum; 48