thread_info.hh revision 5222:bb733a878f85
110611SAndreas.Sandberg@ARM.com/* 212530Sgiacomo.travaglini@arm.com * Copyright .AN) 2007 MIPS Technologies, Inc. All Rights Reserved 310611SAndreas.Sandberg@ARM.com * 410611SAndreas.Sandberg@ARM.com * This software is part of the M5 simulator. 510611SAndreas.Sandberg@ARM.com * 610611SAndreas.Sandberg@ARM.com * THIS IS A LEGAL AGREEMENT. BY DOWNLOADING, USING, COPYING, CREATING 710611SAndreas.Sandberg@ARM.com * DERIVATIVE WORKS, AND/OR DISTRIBUTING THIS SOFTWARE YOU ARE AGREEING 810611SAndreas.Sandberg@ARM.com * TO THESE TERMS AND CONDITIONS. 910611SAndreas.Sandberg@ARM.com * 1010611SAndreas.Sandberg@ARM.com * Permission is granted to use, copy, create derivative works and 1110611SAndreas.Sandberg@ARM.com * distribute this software and such derivative works for any purpose, 1210611SAndreas.Sandberg@ARM.com * so long as (1) the copyright notice above, this grant of permission, 1310611SAndreas.Sandberg@ARM.com * and the disclaimer below appear in all copies and derivative works 1410696SAndreas.Sandberg@ARM.com * made, (2) the copyright notice above is augmented as appropriate to 1510696SAndreas.Sandberg@ARM.com * reflect the addition of any new copyrightable work in a derivative 1610696SAndreas.Sandberg@ARM.com * work (e.g., Copyright .AN) <Publication Year> Copyright Owner), and (3) 1710611SAndreas.Sandberg@ARM.com * the name of MIPS Technologies, Inc. ($B!H(BMIPS$B!I(B) is not used in any 1810611SAndreas.Sandberg@ARM.com * advertising or publicity pertaining to the use or distribution of 1910611SAndreas.Sandberg@ARM.com * this software without specific, written prior authorization. 2010611SAndreas.Sandberg@ARM.com * 2110611SAndreas.Sandberg@ARM.com * THIS SOFTWARE IS PROVIDED $B!H(BAS IS.$B!I(B MIPS MAKES NO WARRANTIES AND 2210611SAndreas.Sandberg@ARM.com * DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS, STATUTORY, IMPLIED OR 2310611SAndreas.Sandberg@ARM.com * OTHERWISE, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2410611SAndreas.Sandberg@ARM.com * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND 2510611SAndreas.Sandberg@ARM.com * NON-INFRINGEMENT OF THIRD PARTY RIGHTS, REGARDING THIS SOFTWARE. 2610611SAndreas.Sandberg@ARM.com * IN NO EVENT SHALL MIPS BE LIABLE FOR ANY DAMAGES, INCLUDING DIRECT, 2710611SAndreas.Sandberg@ARM.com * INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, OR PUNITIVE DAMAGES OF 2810611SAndreas.Sandberg@ARM.com * ANY KIND OR NATURE, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT, 2910611SAndreas.Sandberg@ARM.com * THIS SOFTWARE AND/OR THE USE OF THIS SOFTWARE, WHETHER SUCH LIABILITY 3010611SAndreas.Sandberg@ARM.com * IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE OR 3110611SAndreas.Sandberg@ARM.com * STRICT LIABILITY), OR OTHERWISE, EVEN IF MIPS HAS BEEN WARNED OF THE 3210611SAndreas.Sandberg@ARM.com * POSSIBILITY OF ANY SUCH LOSS OR DAMAGE IN ADVANCE. 3310611SAndreas.Sandberg@ARM.com * 3410611SAndreas.Sandberg@ARM.com * 3510611SAndreas.Sandberg@ARM.com * Authors: Ali G. Saidi 3610611SAndreas.Sandberg@ARM.com * Nathan L. Binkert 3710611SAndreas.Sandberg@ARM.com */ 3810611SAndreas.Sandberg@ARM.com 3910611SAndreas.Sandberg@ARM.com#ifndef __ARCH_MIPS_LINUX_THREAD_INFO_H__ 4010611SAndreas.Sandberg@ARM.com#define __ARCH_MIPS_LINUX_THREAD_INFO_H__ 4110696SAndreas.Sandberg@ARM.com 4210611SAndreas.Sandberg@ARM.com#include "arch/mips/linux/hwrpb.hh" 4310611SAndreas.Sandberg@ARM.com 4410611SAndreas.Sandberg@ARM.comnamespace Linux { 4510611SAndreas.Sandberg@ARM.com struct thread_info { 4610611SAndreas.Sandberg@ARM.com struct pcb_struct pcb; 4710611SAndreas.Sandberg@ARM.com Addr_a task; 4810611SAndreas.Sandberg@ARM.com }; 4910611SAndreas.Sandberg@ARM.com} 5010611SAndreas.Sandberg@ARM.com 5110611SAndreas.Sandberg@ARM.com#endif // __ARCH_MIPS_LINUX_THREAD_INFO_H__ 5210611SAndreas.Sandberg@ARM.com