Re: NdisInterLockedIncrement/Decrement macros
- From: "Stephan Wolf [MVP]" <stewo68@xxxxxxxxxxx>
- Date: 15 Jan 2007 09:00:24 -0800
soviet_bloke@xxxxxxxxxxx wrote:
You are allowed to use LOCK prefix only with the instructions that I
mentioned above, and MOV is not among them.
It is not allowed because it is useless on x86, anyway.
Also, reading a variable will always be atomic on all CPUs, even on
RISC or whatever (assumed the variable is correctly aligned).
Thus, there is abosuletly no need for any locking here.
Stephan
.
- Follow-Ups:
- Re: NdisInterLockedIncrement/Decrement macros
- From: soviet_bloke
- Re: NdisInterLockedIncrement/Decrement macros
- References:
- Re: NdisInterLockedIncrement/Decrement macros
- From: Thomas F. Divine
- Re: NdisInterLockedIncrement/Decrement macros
- From: soviet_bloke
- Re: NdisInterLockedIncrement/Decrement macros
- From: Stephan Wolf [MVP]
- Re: NdisInterLockedIncrement/Decrement macros
- From: soviet_bloke
- Re: NdisInterLockedIncrement/Decrement macros
- Prev by Date: Re: Virtual Disk device stack
- Next by Date: Re: NDIS_802_11_STATISTICS question
- Previous by thread: Re: NdisInterLockedIncrement/Decrement macros
- Next by thread: Re: NdisInterLockedIncrement/Decrement macros
- Index(es):
Relevant Pages
|