[ixp1200] waiting for memory writes
Shyamal Pandya
shyamalpandya at hotmail.com
Mon Nov 18 21:38:38 EST 2002
Use the sram/sdram instruction with a sig_done optional token. This won't
swap out the context. A wait loop can then be written using the br_!signal
instruction.
Refer the microcode programmer's reference for details. It even has an
example. All this if you are using microcode.
>From: Gregory Prier <greg at Lever.cs.ucla.edu>
>Reply-To: ixp1200 at CS.Princeton.EDU
>To: ixp mailing list <ixp1200 at CS.Princeton.EDU>
>Subject: [ixp1200] waiting for memory writes
>Date: Mon, 18 Nov 2002 15:31:26 -0800 (PST)
>
>Is there any way to get the uengine to wait for a memory write to complete
>without swapping context? I can swap context and wait for a signal but
>then
>other threads have a chance to run, which I don't want to happen. I just
>want
>the processor to spin and waste cycles while the write completes. Yes, I
>know
>this is inefficient, but it would be a big help right now for debugging.
>
>Thanks for the help.
>GKP
>
>----------------------------------------------------------------------
>Greg Prier Previously: A Mudder
>3564 Boelter Hall Currently: A Bruin working
>UCLA CA 90095 toward a PhD
>(310) 825-8899 After that: No idea
>
>"Hell, there are no rules here. We're trying to accomplish something."
> Thomas Edison
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
More information about the ixp1200
mailing list