segment.hh revision 7087
12623SN/A/* 22623SN/A * Copyright (c) 2007 The Hewlett-Packard Development Company 32623SN/A * All rights reserved. 42623SN/A * 52623SN/A * The license below extends only to copyright in the software and shall 62623SN/A * not be construed as granting a license to any other intellectual 72623SN/A * property including but not limited to intellectual property relating 82623SN/A * to a hardware implementation of the functionality of the software 92623SN/A * licensed hereunder. You may use the software subject to the license 102623SN/A * terms below provided that you ensure that this notice is replicated 112623SN/A * unmodified and in its entirety in all distributions of the software, 122623SN/A * modified or unmodified, in source code or in binary form. 132623SN/A * 142623SN/A * Redistribution and use in source and binary forms, with or without 152623SN/A * modification, are permitted provided that the following conditions are 162623SN/A * met: redistributions of source code must retain the above copyright 172623SN/A * notice, this list of conditions and the following disclaimer; 182623SN/A * redistributions in binary form must reproduce the above copyright 192623SN/A * notice, this list of conditions and the following disclaimer in the 202623SN/A * documentation and/or other materials provided with the distribution; 212623SN/A * neither the name of the copyright holders nor the names of its 222623SN/A * contributors may be used to endorse or promote products derived from 232623SN/A * this software without specific prior written permission. 242623SN/A * 252623SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 262623SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 272623SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 282623SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 292623SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 302623SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 312623SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 322623SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 332623SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 342623SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 352623SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 362623SN/A * 372623SN/A * Authors: Gabe Black 382623SN/A */ 392623SN/A 402623SN/A#ifndef __ARCH_X86_SEGMENTREGS_HH__ 412623SN/A#define __ARCH_X86_SEGMENTREGS_HH__ 422623SN/A 432623SN/Anamespace X86ISA 442623SN/A{ 452623SN/A enum SegmentRegIndex 462623SN/A { 472623SN/A SEGMENT_REG_ES, 482623SN/A SEGMENT_REG_CS, 492623SN/A SEGMENT_REG_SS, 502623SN/A SEGMENT_REG_DS, 512623SN/A SEGMENT_REG_FS, 522623SN/A SEGMENT_REG_GS, 532623SN/A SEGMENT_REG_HS, // Temporary descriptor 542623SN/A SEGMENT_REG_TSL, // Local descriptor table 552623SN/A SEGMENT_REG_TSG, // Global descriptor table 562623SN/A SEGMENT_REG_LS, // Flat segment 572623SN/A SEGMENT_REG_MS, // Emulation memory 582623SN/A // These shouldn't be used directly in a load or store since they 592623SN/A // are likely accessed in other ways in a real machine. For instance, 602623SN/A // they may be loaded into the temporary segment register on demand. 612623SN/A SYS_SEGMENT_REG_TR, 622623SN/A SYS_SEGMENT_REG_IDTR, 632623SN/A 642623SN/A NUM_SEGMENTREGS 652623SN/A }; 662623SN/A}; 672623SN/A 682623SN/A#endif // __ARCH_X86_SEGMENTREGS_HH__ 692623SN/A