Re: [ixp1200] waiting for memory writes
![](https://secure.gravatar.com/avatar/6b7ac40e5cbe191cae20c71d3815b9ac.jpg?s=120&d=mm&r=g)
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
Reply-To: ixp1200@CS.Princeton.EDU To: ixp mailing list 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
participants (1)
-
Shyamal Pandya