segment.hh revision 8902
14615SN/A/* 24615SN/A * Copyright (c) 2007 The Hewlett-Packard Development Company 34615SN/A * All rights reserved. 44615SN/A * 57087SN/A * The license below extends only to copyright in the software and shall 67087SN/A * not be construed as granting a license to any other intellectual 77087SN/A * property including but not limited to intellectual property relating 87087SN/A * to a hardware implementation of the functionality of the software 97087SN/A * licensed hereunder. You may use the software subject to the license 107087SN/A * terms below provided that you ensure that this notice is replicated 117087SN/A * unmodified and in its entirety in all distributions of the software, 127087SN/A * modified or unmodified, in source code or in binary form. 134615SN/A * 147087SN/A * Redistribution and use in source and binary forms, with or without 157087SN/A * modification, are permitted provided that the following conditions are 167087SN/A * met: redistributions of source code must retain the above copyright 177087SN/A * notice, this list of conditions and the following disclaimer; 187087SN/A * redistributions in binary form must reproduce the above copyright 197087SN/A * notice, this list of conditions and the following disclaimer in the 207087SN/A * documentation and/or other materials provided with the distribution; 217087SN/A * neither the name of the copyright holders nor the names of its 224615SN/A * contributors may be used to endorse or promote products derived from 237087SN/A * this software without specific prior written permission. 244615SN/A * 254615SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 264615SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 274615SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 284615SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 294615SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 304615SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 314615SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 324615SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 334615SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 344615SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 354615SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 364615SN/A * 374615SN/A * Authors: Gabe Black 384615SN/A */ 394615SN/A 404615SN/A#ifndef __ARCH_X86_SEGMENTREGS_HH__ 414615SN/A#define __ARCH_X86_SEGMENTREGS_HH__ 424615SN/A 434615SN/Anamespace X86ISA 444615SN/A{ 454615SN/A enum SegmentRegIndex 464615SN/A { 474615SN/A SEGMENT_REG_ES, 484615SN/A SEGMENT_REG_CS, 494615SN/A SEGMENT_REG_SS, 504615SN/A SEGMENT_REG_DS, 514615SN/A SEGMENT_REG_FS, 524615SN/A SEGMENT_REG_GS, 535294SN/A SEGMENT_REG_HS, // Temporary descriptor 545294SN/A SEGMENT_REG_TSL, // Local descriptor table 555294SN/A SEGMENT_REG_TSG, // Global descriptor table 565294SN/A SEGMENT_REG_LS, // Flat segment 575294SN/A SEGMENT_REG_MS, // Emulation memory 585294SN/A // These shouldn't be used directly in a load or store since they 595294SN/A // are likely accessed in other ways in a real machine. For instance, 605294SN/A // they may be loaded into the temporary segment register on demand. 615294SN/A SYS_SEGMENT_REG_TR, 625294SN/A SYS_SEGMENT_REG_IDTR, 634615SN/A 644615SN/A NUM_SEGMENTREGS 654615SN/A }; 668902Sandreas.hansson@arm.com} 674615SN/A 684615SN/A#endif // __ARCH_X86_SEGMENTREGS_HH__ 69