From b37e8a903c979813c15c64e22739869f14bd629e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 15 Aug 2003 15:19:21 +0000 Subject: [PATCH] Adjust the style of the #ifdef SMP in casuptr() so that the #ifdef SMP just covers the lock prefix to match the existing style in other asm files in i386. --- sys/i386/i386/support.s | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index f0f99e4a7346..6af498019e5d 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -1182,11 +1182,10 @@ ENTRY(casuptr) cmpl $VM_MAXUSER_ADDRESS-4,%edx /* verify address is valid */ ja fusufault -#if defined(SMP) - lock cmpxchgl %ecx, (%edx) /* Compare and set. */ -#else /* !SMP */ - cmpxchgl %ecx, (%edx) -#endif /* !SMP */ +#ifdef SMP + lock +#endif + cmpxchgl %ecx, (%edx) /* Compare and set. */ /* * The old value is in %eax. If the store succeeded it will be the