| To: | Linux MIPS Mailing List <linux-mips@linux-mips.org> |
|---|---|
| Subject: | is there dummy r/w in mips kernel API |
| From: | loody <miloody@gmail.com> |
| Date: | Sun, 2 Jan 2011 20:32:26 +0800 |
| Cc: | linux-usb@vger.kernel.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=HAr1kLxwjh0BSZy2euVDBKqLV2XrVe19WO7MzqBQopk=; b=cHaMkgVTnyCkXRZW8CAsNiueD8ytgyMbLMEBXobe/ozHomyN76+SaHI+lF7eq30WxA w5wFppsb1je7X4vGqlhvHAj8nnN1jU4DTfruk3dUanRl/90LG2qwhQzeZbmdr7PeXnav gQSBx1E2b2QovPX7o2GaZsrCJjouaqoLkHi5k= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=BrcCScy8yqLeJEGwvjp8Tixqc+NUdfyMAoxW2rSEvFYuq3NKx4s6/wvYakp/oRyq2m SDzA8dcuQfqkcVhTFP9NvFp53pTei7BLAlK+KhWWBjmDd6eQp2hQgiymkd9FB1DISr/n CHwKhjix16Z56FWT/OB8SIyiMKk5V7+WxMn0o= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Dear all:
I am trying porting usb on mips platform.
Due to hw limitation, I have to do the dummy read to make sure data
has been written to the memory, so I announce an volatile parameter,
tmp, such that cpu will read the same address back to me.
Below is what I try to do in usb driver:
wmb ();
389c: 0000000f sync
dummy->hw_token = token;
38a0: ae740008 sw s4,8(s3)
tmp = dummy->hw_token;
38a4: afb40010 sw s4,16(sp)
as you can see, the compiler is so smart that he read the register
content instead of re-read the memory for accelerating the read speed.
unfortunately, that isn't I want. Is there already exist kernel API can help me?
appreciate your help,
miloody
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: functions about dump backtrace function names in mips arch, Deng-Cheng Zhu |
|---|---|
| Next by Date: | Re: is there dummy r/w in mips kernel API, Alan Stern |
| Previous by Thread: | functions about dump backtrace function names in mips arch, loody |
| Next by Thread: | Re: is there dummy r/w in mips kernel API, Alan Stern |
| Indexes: | [Date] [Thread] [Top] [All Lists] |