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.
This commit is contained in:
John Baldwin 2003-08-15 15:19:21 +00:00
parent 1b1a896518
commit b37e8a903c

View File

@ -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