[Top] [All Lists]

some question about wmb in mips

To: Linux MIPS Mailing List <>
Subject: some question about wmb in mips
From: loody <>
Date: Mon, 28 Jun 2010 00:16:06 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vc9g6E/OPJcWLZ3Wr6jhtOqhq2BXJc3j5YlJKFXUiAo=; b=WLdqKd/1agj1ZkaQ7tEbbswTKCQd36OYdJK5o14dNrRmQSY6+7pDvdTQ9Be6fzyWSk 6+YX10JWw6KSxIBXNK3UpF/kXFkEYPlcUeWk82OQkn4jGqGSzeiZrNelzgeWzfgrGuLB dCjreRc7wrZJK+h/j1XTFajlHpnDGt3DFczos=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=njaSUp4jKepBuXxaTXJjqYH4Fr1YHdvnfiENRlFGzr4RUWyONKIVJwSCjEMqbnSdnW 18tKOZtrD9OiN/wUIKDfCppihIeRou/y/PZi35zM5UWe04ovVX9Mihgwb0DLkYVVtRki C2N3LplZWQwkiX92J6QdCnhsyDXAsjHGXrrYY=
Dear all:
AFAIK, wmb in mips is implemented by calling sync,
wmb->fast_wmb->__sync, which makes sure Loads and stores executed
before the SYNC are completed before loads
and stores after the SYNC can start
But will this instruction write the cache back too?
take usb example, it will call this maco before it let host processing
the commands on dram, so I wondering whether sync will write the cache
back to memory.
appreciate your help,

<Prev in Thread] Current Thread [Next in Thread>