H20001 s 00027/00000/00000 d D 1.1 02/03/13 20:31:05 patch 2 1 cC cF1 cK53390 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:05 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/include/asm-ia64/sn/simulator.h cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK13881 cPinclude/asm-ia64/sn/simulator.h cR2370edfe32a71aee cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 #ifndef _ASM_IA64_SN_SIMULATOR_H #define _ASM_IA64_SN_SIMULATOR_H /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * Copyright (C) 2000-2001 Silicon Graphics, Inc. All rights reserved. */ #include #ifdef CONFIG_IA64_SGI_SN_SIM #define SNMAGIC 0xaeeeeeee8badbeefL #define IS_RUNNING_ON_SIMULATOR() ({long sn; asm("mov %0=cpuid[%1]" : "=r"(sn) : "r"(2)); sn == SNMAGIC;}) #define SIMULATOR_SLEEP() asm("nop.i 0x8beef") #else #define IS_RUNNING_ON_SIMULATOR() (0) #define SIMULATOR_SLEEP() #endif #endif /* _ASM_IA64_SN_SIMULATOR_H */ E 2 I 1 E 1