Re: xchg & lock question



Thanks for reply.
Looks like i'm missing something important.. ;(

I've seen you in microsoft.public.win32.programmer.kernel.
Can you please comment my original question there?
("InterlockedExchange implementation" subject).

--

"Tim Roberts" <spamtrap@xxxxxxxxxx> wrote in message news:tt5f22ldm0ql3nnirquvid5dgqmt6dd8s1@xxxxxxxxxx
"Eman" <spamtrap@xxxxxxxxxx> wrote:

According to Intel' manual "when a memory operand is used with
the XCHG instruction, the processor's LOCK signal is automatically
asserted". AMD documentation also states that.

Can someone tell me, which of IA32 compatible processors do not
assert LOCK automatically in the case of XCHG reg,[mem] ?

None of them. If they are IA32-compatible, then they MUST assert LOCK with
XCHG. That's one of the fundamental behaviors. Windows would break if
they didn't.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.


.