[BACK]Return to reg.h CVS log [TXT][DIR] Up to [local] / sys / arch / hppa64 / include

Annotation of sys/arch/hppa64/include/reg.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: reg.h,v 1.1 2005/04/01 10:40:48 mickey Exp $  */
                      2:
                      3: /*
                      4:  * Copyright (c) 2005 Michael Shalayeff
                      5:  * All rights reserved.
                      6:  *
                      7:  * Permission to use, copy, modify, and distribute this software for any
                      8:  * purpose with or without fee is hereby granted, provided that the above
                      9:  * copyright notice and this permission notice appear in all copies.
                     10:  *
                     11:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     12:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     13:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     14:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     15:  * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
                     16:  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
                     17:  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     18:  */
                     19: /*
                     20:  * Copyright (c) 1990,1994 The University of Utah and
                     21:  * the Computer Systems Laboratory at the University of Utah (CSL).
                     22:  * All rights reserved.
                     23:  *
                     24:  * Permission to use, copy, modify and distribute this software is hereby
                     25:  * granted provided that (1) source code retains these copyright, permission,
                     26:  * and disclaimer notices, and (2) redistributions including binaries
                     27:  * reproduce the notices in supporting documentation, and (3) all advertising
                     28:  * materials mentioning features or use of this software display the following
                     29:  * acknowledgement: ``This product includes software developed by the
                     30:  * Computer Systems Laboratory at the University of Utah.''
                     31:  *
                     32:  * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
                     33:  * IS" CONDITION.  THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
                     34:  * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     35:  *
                     36:  * CSL requests users of this software to return to csl-dist@cs.utah.edu any
                     37:  * improvements that they make and grant CSL redistribution rights.
                     38:  *
                     39:  *     Utah $Hdr: regs.h 1.6 94/12/14$
                     40:  *     Author: Bob Wheeler, University of Utah CSL
                     41:  */
                     42:
                     43: #ifndef _MACHINE_REG_H_
                     44: #define _MACHINE_REG_H_
                     45:
                     46: /*
                     47:  * constants for registers for use with the following routines:
                     48:  *
                     49:  *     void mtctl(reg, value)  - move to control register
                     50:  *     int mfctl(reg)          - move from control register
                     51:  *     int mtsp(sreg, value)   - move to space register
                     52:  *     int mfsr(sreg)          - move from space register
                     53:  */
                     54:
                     55: #define        CR_RCTR         0
                     56: #define        CR_PIDR1        8
                     57: #define        CR_PIDR2        9
                     58: #define        CR_CCR          10
                     59: #define        CR_SAR          11
                     60: #define        CR_PIDR3        12
                     61: #define        CR_PIDR4        13
                     62: #define        CR_IVA          14
                     63: #define        CR_EIEM         15
                     64: #define        CR_ITMR         16
                     65: #define        CR_PCSQ         17
                     66: #define        CR_PCOQ         18
                     67: #define        CR_IIR          19
                     68: #define        CR_ISR          20
                     69: #define        CR_IOR          21
                     70: #define        CR_IPSW         22
                     71: #define        CR_EIRR         23
                     72: #define        CR_CPUINFO      24
                     73: #define        CR_VTOP         25
                     74: #define        CR_UPADDR       30      /* paddr of U-area of curproc */
                     75: #define        CR_TR7          31
                     76:
                     77: #define        HPPA_NREGS      (32)
                     78: #define        HPPA_NFPREGS    (33)    /* 33rd is used for r0 in fpemul */
                     79:
                     80: #ifndef _LOCORE
                     81:
                     82: struct reg {
                     83:        u_int64_t r_regs[HPPA_NREGS];   /* r0 is sar */
                     84:        u_int64_t r_pc;
                     85:        u_int64_t r_npc;
                     86: };
                     87:
                     88: struct fpreg {
                     89:        u_int64_t fpr_regs[HPPA_NFPREGS];
                     90: };
                     91: #endif /* !_LOCORE */
                     92:
                     93: #endif /* _MACHINE_REG_H_ */

CVSweb