osfpal.hh revision 593
11689SN/A/* 29444SAndreas.Sandberg@ARM.com * Copyright (c) 2003 The Regents of The University of Michigan 39920Syasuko.eckert@amd.com * All rights reserved. 47944SGiacomo.Gabrielli@arm.com * 57944SGiacomo.Gabrielli@arm.com * Redistribution and use in source and binary forms, with or without 67944SGiacomo.Gabrielli@arm.com * modification, are permitted provided that the following conditions are 77944SGiacomo.Gabrielli@arm.com * met: redistributions of source code must retain the above copyright 87944SGiacomo.Gabrielli@arm.com * notice, this list of conditions and the following disclaimer; 97944SGiacomo.Gabrielli@arm.com * redistributions in binary form must reproduce the above copyright 107944SGiacomo.Gabrielli@arm.com * notice, this list of conditions and the following disclaimer in the 117944SGiacomo.Gabrielli@arm.com * documentation and/or other materials provided with the distribution; 127944SGiacomo.Gabrielli@arm.com * neither the name of the copyright holders nor the names of its 137944SGiacomo.Gabrielli@arm.com * contributors may be used to endorse or promote products derived from 147944SGiacomo.Gabrielli@arm.com * this software without specific prior written permission. 152326SN/A * 161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271689SN/A */ 281689SN/A 291689SN/A#ifndef __OSFPAL_HH__ 301689SN/A#define __OSFPAL_HH__ 311689SN/A 321689SN/Astruct PAL 331689SN/A{ 341689SN/A enum { 351689SN/A // Privileged PAL functions 361689SN/A halt = 0x00, 371689SN/A cflush = 0x01, 381689SN/A draina = 0x02, 391689SN/A cserve = 0x09, 402665Ssaidi@eecs.umich.edu swppal = 0x0a, 412665Ssaidi@eecs.umich.edu wripir = 0x0d, 422831Sksewell@umich.edu rdmces = 0x10, 431689SN/A wrmces = 0x11, 441689SN/A wrfen = 0x2b, 459944Smatt.horsnell@ARM.com wrvptptr = 0x2d, 469944Smatt.horsnell@ARM.com swpctx = 0x30, 479944Smatt.horsnell@ARM.com wrval = 0x31, 482064SN/A rdval = 0x32, 491060SN/A tbi = 0x33, 501060SN/A wrent = 0x34, 512292SN/A swpipl = 0x35, 521717SN/A rdps = 0x36, 538232Snate@binkert.org wrkgp = 0x37, 544762Snate@binkert.org wrusp = 0x38, 556221Snate@binkert.org wrperfmon = 0x39, 564762Snate@binkert.org rdusp = 0x3a, 571060SN/A whami = 0x3c, 588737Skoansin.tan@gmail.com retsys = 0x3d, 598737Skoansin.tan@gmail.com wtint = 0x3e, 608737Skoansin.tan@gmail.com rti = 0x3f, 615529Snate@binkert.org 621061SN/A // unprivileged pal functions 632292SN/A bpt = 0x80, 645606Snate@binkert.org bugchk = 0x81, 658581Ssteve.reinhardt@amd.com callsys = 0x83, 668581Ssteve.reinhardt@amd.com imb = 0x86, 671060SN/A urti = 0x92, 682292SN/A rdunique = 0x9e, 692292SN/A wrunique = 0x9f, 702292SN/A gentrap = 0xaa, 712292SN/A clrfen = 0xae, 722292SN/A nphalt = 0xbe, 732292SN/A copypal = 0xbf, 742326SN/A NumCodes 752292SN/A }; 762292SN/A 772292SN/A static const char *name(int index); 782292SN/A}; 792292SN/A 802292SN/A#endif // __OSFPAL_HH__ 815336Shines@cs.fsu.edu