osfpal.hh revision 2665
13536SN/A/* 27752SWilliam.Wang@arm.com * Copyright (c) 2003-2005 The Regents of The University of Michigan 37752SWilliam.Wang@arm.com * All rights reserved. 47752SWilliam.Wang@arm.com * 57752SWilliam.Wang@arm.com * Redistribution and use in source and binary forms, with or without 67752SWilliam.Wang@arm.com * modification, are permitted provided that the following conditions are 77752SWilliam.Wang@arm.com * met: redistributions of source code must retain the above copyright 87752SWilliam.Wang@arm.com * notice, this list of conditions and the following disclaimer; 97752SWilliam.Wang@arm.com * redistributions in binary form must reproduce the above copyright 107752SWilliam.Wang@arm.com * notice, this list of conditions and the following disclaimer in the 117752SWilliam.Wang@arm.com * documentation and/or other materials provided with the distribution; 127752SWilliam.Wang@arm.com * neither the name of the copyright holders nor the names of its 137752SWilliam.Wang@arm.com * contributors may be used to endorse or promote products derived from 143536SN/A * this software without specific prior written permission. 153536SN/A * 163536SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 173536SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 183536SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 193536SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 203536SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 213536SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 223536SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 233536SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 243536SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 253536SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 263536SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 273536SN/A * 283536SN/A * Authors: Nathan Binkert 293536SN/A */ 303536SN/A 313536SN/A#ifndef __OSFPAL_HH__ 323536SN/A#define __OSFPAL_HH__ 333536SN/A 343536SN/Astruct PAL 353536SN/A{ 363536SN/A enum { 373536SN/A // Privileged PAL functions 383536SN/A halt = 0x00, 393536SN/A cflush = 0x01, 403536SN/A draina = 0x02, 417752SWilliam.Wang@arm.com cserve = 0x09, 423536SN/A swppal = 0x0a, 433536SN/A wripir = 0x0d, 443536SN/A rdmces = 0x10, 453536SN/A wrmces = 0x11, 465543SN/A wrfen = 0x2b, 473536SN/A wrvptptr = 0x2d, 483536SN/A swpctx = 0x30, 493536SN/A wrval = 0x31, 503536SN/A rdval = 0x32, 513536SN/A tbi = 0x33, 523536SN/A wrent = 0x34, 533536SN/A swpipl = 0x35, 545543SN/A rdps = 0x36, 555543SN/A wrkgp = 0x37, 563536SN/A wrusp = 0x38, 573536SN/A wrperfmon = 0x39, 583536SN/A rdusp = 0x3a, 593536SN/A whami = 0x3c, 603536SN/A retsys = 0x3d, 613536SN/A wtint = 0x3e, 623536SN/A rti = 0x3f, 633536SN/A 643536SN/A // unprivileged pal functions 653536SN/A bpt = 0x80, 663536SN/A bugchk = 0x81, 675543SN/A callsys = 0x83, 685543SN/A imb = 0x86, 693536SN/A urti = 0x92, 703536SN/A rdunique = 0x9e, 713536SN/A wrunique = 0x9f, 723536SN/A gentrap = 0xaa, 733536SN/A clrfen = 0xae, 743536SN/A nphalt = 0xbe, 753536SN/A copypal = 0xbf, 763536SN/A NumCodes 773536SN/A }; 783536SN/A 793536SN/A static const char *name(int index); 803536SN/A}; 813536SN/A 823536SN/A#endif // __OSFPAL_HH__ 833536SN/A