From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: linux-ia64@vger.kernel.org
Subject: I have a problem about changing a bundle, help!
Date: Fri, 21 Dec 2007 05:58:12 +0000 [thread overview]
Message-ID: <476B55F4.7000205@cn.fujitsu.com> (raw)
Hello!
Are the following statements safe? Is there any coherence problem?
And why?
/* change the instruction */
memcpy(ins_addr, ins_buf, sizeof(struct ia64_bundle));
flush_icache_range(ins_addr, ins_addr + sizeof(struct ia64_bundle));
I have make sure that just one thread changes the instruction(bundle),
but maybe a lot of threads execute the instruction in the same time.
Is any thread executes an error instruction(maybe an error bundle
combined with old bundle and new bundle, or other) in some condition?
If the statements are unsafe, how can i change a bundle safely?
Best Regards!
Lai Jiangshan
next reply other threads:[~2007-12-21 5:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-21 5:58 Lai Jiangshan [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-02 22:03 I have a problem about changing a bundle, help! Luck, Tony
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=476B55F4.7000205@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox