--- np2/i386c/ia32/interface.h 2005/05/20 13:59:47 1.18 +++ np2/i386c/ia32/interface.h 2011/12/21 17:32:49 1.21 @@ -1,5 +1,3 @@ -/* $Id: interface.h,v 1.18 2005/05/20 13:59:47 yui Exp $ */ - /* * Copyright (c) 2002-2003 NONAKA Kimihiro * All rights reserved. @@ -32,6 +30,14 @@ #define CPUCALL #endif +#ifndef STATIC_INLINE +#if defined(__GNUC__) +#define STATIC_INLINE static INLINE __attribute__((unused)) +#else +#define STATIC_INLINE static INLINE +#endif +#endif + #if !defined(QWORD_CONST) #define QWORD_CONST(v) v ## ULL #define SQWORD_CONST(v) v ## LL @@ -44,7 +50,7 @@ #define CPU_INITIALIZE() i386c_initialize() #define CPU_DEINITIALIZE() #define CPU_RESET() ia32reset() -#define CPU_CLEARPREFETCH() CPU_PREFETCH_CLEAR() +#define CPU_CLEARPREFETCH() #define CPU_INTERRUPT(vect, soft) ia32_interrupt(vect, soft) #define CPU_EXEC() ia32() #define CPU_EXECV30() ia32()