Re: Need a Atomic function for Mips 4000c
- From: "FredK" <fred.nospam@xxxxxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 07:28:16 -0400
"Jan Vorbrüggen" <jvorbrueggen-not@xxxxxxxxxxx> wrote in message
news:4bbaheF10jc6cU1@xxxxxxxxxxxxxxxxx
determineOn EV6 and later, the LDL sets a per-processor flag which is cleared by
*any* memory write on the processor. The STC checks this flag to
andif something changed on the local processor (this handles the interrupts
yourtraps conditions),
...with the important implication (I know that you know that, Fred) that
locking code is not allowed to execute any writes between the LL and theSC.
That's a significant restriction that broke quite some code when the EV6was
introduced, didn't it, Fred?
I woudn't say "quite some code" but yes, there was some generated LDL/STC
code sequences out there that were broken and we supplied an application
that could look through the binary images to detect them (so they could be
fixed).\
.
- References:
- Need a Atomic function for Mips 4000c
- From: Gomathi
- Re: Need a Atomic function for Mips 4000c
- From: rambam
- Re: Need a Atomic function for Mips 4000c
- From: FredK
- Re: Need a Atomic function for Mips 4000c
- From: Jan Vorbrüggen
- Need a Atomic function for Mips 4000c
- Prev by Date: How do processors become faster ? Finally the answer...
- Next by Date: Re: How do processors become faster ? Finally the answer...
- Previous by thread: Re: Need a Atomic function for Mips 4000c
- Next by thread: Re: Need a Atomic function for Mips 4000c
- Index(es):