1*2e13731dSmatt /* $NetBSD: reg.h,v 1.6 2014/01/29 00:42:15 matt Exp $ */ 29826a767Sbjh21 39826a767Sbjh21 /* 49826a767Sbjh21 * Copyright (C) 1994, 1995 Frank Lancaster 59826a767Sbjh21 * Copyright (C) 1994, 1995 TooLs GmbH. 69826a767Sbjh21 * All rights reserved. 79826a767Sbjh21 * 89826a767Sbjh21 * Redistribution and use in source and binary forms, with or without 99826a767Sbjh21 * modification, are permitted provided that the following conditions 109826a767Sbjh21 * are met: 119826a767Sbjh21 * 1. Redistributions of source code must retain the above copyright 129826a767Sbjh21 * notice, this list of conditions and the following disclaimer. 139826a767Sbjh21 * 2. Redistributions in binary form must reproduce the above copyright 149826a767Sbjh21 * notice, this list of conditions and the following disclaimer in the 159826a767Sbjh21 * documentation and/or other materials provided with the distribution. 169826a767Sbjh21 * 3. All advertising materials mentioning features or use of this software 179826a767Sbjh21 * must display the following acknowledgement: 189826a767Sbjh21 * This product includes software developed by TooLs GmbH. 199826a767Sbjh21 * 4. The name of TooLs GmbH may not be used to endorse or promote products 209826a767Sbjh21 * derived from this software without specific prior written permission. 219826a767Sbjh21 * 229826a767Sbjh21 * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 239826a767Sbjh21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 249826a767Sbjh21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 259826a767Sbjh21 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 269826a767Sbjh21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 279826a767Sbjh21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 289826a767Sbjh21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 299826a767Sbjh21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 309826a767Sbjh21 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 319826a767Sbjh21 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 329826a767Sbjh21 * 339826a767Sbjh21 * @(#)reg.h 5.5 (Berkeley) 1/18/91 349826a767Sbjh21 */ 359826a767Sbjh21 36*2e13731dSmatt #ifndef _ARM_REG_H_ 37*2e13731dSmatt #define _ARM_REG_H_ 389826a767Sbjh21 399826a767Sbjh21 struct reg { 409826a767Sbjh21 unsigned int r[13]; 419826a767Sbjh21 unsigned int r_sp; 429826a767Sbjh21 unsigned int r_lr; 439826a767Sbjh21 unsigned int r_pc; 449826a767Sbjh21 unsigned int r_cpsr; 459826a767Sbjh21 }; 469826a767Sbjh21 47b45167b6Srearnsha struct vfpreg { 48b45167b6Srearnsha uint32_t vfp_fpexc; 49b45167b6Srearnsha uint32_t vfp_fpscr; 50b45167b6Srearnsha uint32_t vfp_fpinst; 51b45167b6Srearnsha uint32_t vfp_fpinst2; 5246372d58Smatt uint64_t vfp_regs[33]; /* In case we need fstmx format. */ 53b45167b6Srearnsha }; 54b45167b6Srearnsha 55cb72f657Smatt struct fpreg { 56cb72f657Smatt struct vfpreg fpr_vfp; 57cb72f657Smatt }; 58cb72f657Smatt 59cb72f657Smatt 60*2e13731dSmatt #endif /* !_ARM_REG_H_ */ 61