int.hh revision 4333
112391Sjason@lowepower.com/* 212391Sjason@lowepower.com * Copyright (c) 2007 The Hewlett-Packard Development Company 312391Sjason@lowepower.com * All rights reserved. 412391Sjason@lowepower.com * 512391Sjason@lowepower.com * Redistribution and use of this software in source and binary forms, 612391Sjason@lowepower.com * with or without modification, are permitted provided that the 712391Sjason@lowepower.com * following conditions are met: 812391Sjason@lowepower.com * 912391Sjason@lowepower.com * The software must be used only for Non-Commercial Use which means any 1012391Sjason@lowepower.com * use which is NOT directed to receiving any direct monetary 1112391Sjason@lowepower.com * compensation for, or commercial advantage from such use. Illustrative 1212391Sjason@lowepower.com * examples of non-commercial use are academic research, personal study, 1312391Sjason@lowepower.com * teaching, education and corporate research & development. 1412391Sjason@lowepower.com * Illustrative examples of commercial use are distributing products for 1512391Sjason@lowepower.com * commercial advantage and providing services using the software for 1612391Sjason@lowepower.com * commercial advantage. 1712391Sjason@lowepower.com * 1812391Sjason@lowepower.com * If you wish to use this software or functionality therein that may be 1912391Sjason@lowepower.com * covered by patents for commercial use, please contact: 2012391Sjason@lowepower.com * Director of Intellectual Property Licensing 2112391Sjason@lowepower.com * Office of Strategy and Technology 2212391Sjason@lowepower.com * Hewlett-Packard Company 2312391Sjason@lowepower.com * 1501 Page Mill Road 2412391Sjason@lowepower.com * Palo Alto, California 94304 2512391Sjason@lowepower.com * 2612391Sjason@lowepower.com * Redistributions of source code must retain the above copyright notice, 2712391Sjason@lowepower.com * this list of conditions and the following disclaimer. Redistributions 2812391Sjason@lowepower.com * in binary form must reproduce the above copyright notice, this list of 2912391Sjason@lowepower.com * conditions and the following disclaimer in the documentation and/or 3012391Sjason@lowepower.com * other materials provided with the distribution. Neither the name of 3112391Sjason@lowepower.com * the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 3212391Sjason@lowepower.com * contributors may be used to endorse or promote products derived from 3312391Sjason@lowepower.com * this software without specific prior written permission. No right of 3412391Sjason@lowepower.com * sublicense is granted herewith. Derivatives of the software and 3512391Sjason@lowepower.com * output created using the software may be prepared, but only for 3612391Sjason@lowepower.com * Non-Commercial Uses. Derivatives of the software may be shared with 3712391Sjason@lowepower.com * others provided: (i) the others agree to abide by the list of 3812391Sjason@lowepower.com * conditions herein which includes the Non-Commercial Use restrictions; 3912391Sjason@lowepower.com * and (ii) such Derivatives of the software include the above copyright 4012391Sjason@lowepower.com * notice to acknowledge the contribution from this software where 4112391Sjason@lowepower.com * applicable, this list of conditions and the disclaimer below. 4212391Sjason@lowepower.com * 4312391Sjason@lowepower.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 4412391Sjason@lowepower.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 4512391Sjason@lowepower.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 4612391Sjason@lowepower.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 4712391Sjason@lowepower.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4812391Sjason@lowepower.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 4912391Sjason@lowepower.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 5012391Sjason@lowepower.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 5112391Sjason@lowepower.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 5212391Sjason@lowepower.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 5312391Sjason@lowepower.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 5412391Sjason@lowepower.com * 5512391Sjason@lowepower.com * Authors: Gabe Black 5612391Sjason@lowepower.com */ 5712391Sjason@lowepower.com 5812391Sjason@lowepower.com#ifndef __ARCH_X86_INTREGS_HH__ 5912391Sjason@lowepower.com#define __ARCH_X86_INTREGS_HH__ 6012391Sjason@lowepower.com 6112391Sjason@lowepower.comnamespace X86ISA 6212391Sjason@lowepower.com{ 6312391Sjason@lowepower.com enum IntRegIndex 6412391Sjason@lowepower.com { 6512391Sjason@lowepower.com INTREG_RAX, 6612391Sjason@lowepower.com INTREG_EAX = INTREG_RAX, 6712391Sjason@lowepower.com INTREG_AX = INTREG_RAX, 6812391Sjason@lowepower.com INTREG_AL = INTREG_RAX, 6912391Sjason@lowepower.com INTREG_AH = INTREG_RAX, 7012391Sjason@lowepower.com 7112391Sjason@lowepower.com INTREG_RCX, 7212391Sjason@lowepower.com INTREG_ECX = INTREG_RCX, 7312391Sjason@lowepower.com INTREG_CX = INTREG_RCX, 7412391Sjason@lowepower.com INTREG_CL = INTREG_RCX, 7512391Sjason@lowepower.com INTREG_CH = INTREG_RCX, 7612391Sjason@lowepower.com 7712391Sjason@lowepower.com INTREG_RDX, 7812391Sjason@lowepower.com INTREG_EDX = INTREG_RDX, 7912391Sjason@lowepower.com INTREG_DX = INTREG_RDX, 8012391Sjason@lowepower.com INTREG_DL = INTREG_RDX, 8112391Sjason@lowepower.com INTREG_DH = INTREG_RDX, 8212391Sjason@lowepower.com 8312391Sjason@lowepower.com INTREG_RBX, 8412391Sjason@lowepower.com INTREG_EBX = INTREG_RBX, 8512391Sjason@lowepower.com INTREG_BX = INTREG_RBX, 8612391Sjason@lowepower.com INTREG_BL = INTREG_RBX, 8712391Sjason@lowepower.com INTREG_BH = INTREG_RBX, 8812391Sjason@lowepower.com 8912391Sjason@lowepower.com INTREG_RSP, 9012391Sjason@lowepower.com INTREG_ESP = INTREG_RSP, 9112391Sjason@lowepower.com INTREG_SP = INTREG_RSP, 9212391Sjason@lowepower.com INTREG_SPL = INTREG_RSP, 9312391Sjason@lowepower.com 9412391Sjason@lowepower.com INTREG_RBP, 9512391Sjason@lowepower.com INTREG_EBP = INTREG_RBP, 9612391Sjason@lowepower.com INTREG_BP = INTREG_RBP, 9712391Sjason@lowepower.com INTREG_BPL = INTREG_RBP, 9812391Sjason@lowepower.com 9912391Sjason@lowepower.com INTREG_RSI, 10012391Sjason@lowepower.com INTREG_ESI = INTREG_RSI, 10112391Sjason@lowepower.com INTREG_SI = INTREG_RSI, 10212391Sjason@lowepower.com INTREG_SIL = INTREG_RSI, 10312391Sjason@lowepower.com 10412391Sjason@lowepower.com INTREG_RDI, 10512391Sjason@lowepower.com INTREG_EDI = INTREG_RDI, 10612391Sjason@lowepower.com INTREG_DI = INTREG_RDI, 10712391Sjason@lowepower.com INTREG_DIL = INTREG_RDI, 10812391Sjason@lowepower.com 10912391Sjason@lowepower.com INTREG_R8, 11012391Sjason@lowepower.com INTREG_R8D = INTREG_R8, 11112391Sjason@lowepower.com INTREG_R8W = INTREG_R8, 11212391Sjason@lowepower.com INTREG_R8B = INTREG_R8, 11312391Sjason@lowepower.com 11412391Sjason@lowepower.com INTREG_R9, 11512391Sjason@lowepower.com INTREG_R9D = INTREG_R9, 11612391Sjason@lowepower.com INTREG_R9W = INTREG_R9, 11712391Sjason@lowepower.com INTREG_R9B = INTREG_R9, 11812391Sjason@lowepower.com 11912391Sjason@lowepower.com INTREG_R10, 12012391Sjason@lowepower.com INTREG_R10D = INTREG_R10, 12112391Sjason@lowepower.com INTREG_R10W = INTREG_R10, 12212391Sjason@lowepower.com INTREG_R10B = INTREG_R10, 12312391Sjason@lowepower.com 12412391Sjason@lowepower.com INTREG_R11, 12512391Sjason@lowepower.com INTREG_R11D = INTREG_R11, 12612391Sjason@lowepower.com INTREG_R11W = INTREG_R11, 12712391Sjason@lowepower.com INTREG_R11B = INTREG_R11, 12812391Sjason@lowepower.com 12912391Sjason@lowepower.com INTREG_R12, 13012391Sjason@lowepower.com INTREG_R12D = INTREG_R12, 13112391Sjason@lowepower.com INTREG_R12W = INTREG_R12, 13212391Sjason@lowepower.com INTREG_R12B = INTREG_R12, 13312391Sjason@lowepower.com 13412391Sjason@lowepower.com INTREG_R13, 13512391Sjason@lowepower.com INTREG_R13D = INTREG_R13, 13612391Sjason@lowepower.com INTREG_R13W = INTREG_R13, 13712391Sjason@lowepower.com INTREG_R13B = INTREG_R13, 13812391Sjason@lowepower.com 13912391Sjason@lowepower.com INTREG_R14, 14012391Sjason@lowepower.com INTREG_R14D = INTREG_R14, 14112391Sjason@lowepower.com INTREG_R14W = INTREG_R14, 14212391Sjason@lowepower.com INTREG_R14B = INTREG_R14, 14312391Sjason@lowepower.com 14412391Sjason@lowepower.com INTREG_R15, 14512391Sjason@lowepower.com INTREG_R15D = INTREG_R15, 14612391Sjason@lowepower.com INTREG_R15W = INTREG_R15, 14712391Sjason@lowepower.com INTREG_R15B = INTREG_R15, 14812391Sjason@lowepower.com 14912391Sjason@lowepower.com NUM_INTREGS 15012391Sjason@lowepower.com }; 15112391Sjason@lowepower.com}; 15212391Sjason@lowepower.com 15312391Sjason@lowepower.com#endif // __ARCH_X86_INTERRUPTS_HH__ 15412391Sjason@lowepower.com