From 847f8ee407875af42d99ed968bdaf7e330dcc29c Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Fri, 13 Aug 1999 17:07:25 +0000 Subject: Made implicit assumptions about the availability of some CPU capabilities on certain ISA levels explicitely configurable --- include/asm-mips/system.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/asm-mips/system.h') diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index ee2ebc438..5dff91cd7 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h @@ -1,4 +1,4 @@ -/* $Id: system.h,v 1.8 1999/02/15 02:22:13 ralf Exp $ +/* $Id: system.h,v 1.14 1999/08/09 19:43:18 harald Exp $ * * 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 @@ -10,7 +10,7 @@ #ifndef __ASM_MIPS_SYSTEM_H #define __ASM_MIPS_SYSTEM_H -#include +#include #include extern __inline__ void @@ -159,8 +159,7 @@ do { \ */ extern __inline__ unsigned long xchg_u32(volatile int * m, unsigned long val) { -#if (_MIPS_ISA == _MIPS_ISA_MIPS2) || (_MIPS_ISA == _MIPS_ISA_MIPS3) || \ - (_MIPS_ISA == _MIPS_ISA_MIPS4) || (_MIPS_ISA == _MIPS_ISA_MIPS5) +#if defined(CONFIG_CPU_HAS_LLSC) unsigned long dummy; __asm__ __volatile__( -- cgit v1.2.3