summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-08-15 15:19:21 +0000
committerjhb <jhb@FreeBSD.org>2003-08-15 15:19:21 +0000
commitc2772cebe670e3e34f7fe0f821feb9a5c4c9dc06 (patch)
treea025033f044ea622f3eb116a2f1738abe36f53ae /sys/i386
parent2211bc4b11a209da6241ecbc9f4829b8cd2448a1 (diff)
downloadFreeBSD-src-c2772cebe670e3e34f7fe0f821feb9a5c4c9dc06.zip
FreeBSD-src-c2772cebe670e3e34f7fe0f821feb9a5c4c9dc06.tar.gz
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.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/support.s9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s
index f0f99e4..6af4980 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
OpenPOWER on IntegriCloud