From: Paul Koning <pkoning@equallogic.com>
To: camm@enhanced.com
Cc: drow@mvista.com, binutils@sources.redhat.com, gcl-devel@gnu.org
Subject: Re: [Gcl-devel] Re: BFD relocations
Date: Fri, 07 Jun 2002 06:55:00 -0000 [thread overview]
Message-ID: <15616.47945.929255.781190@pkoning.dev.equallogic.com> (raw)
In-Reply-To: <547klbixuk.fsf@intech19.enhanced.com>
> Greetings! I found an earlier cache flushing snippet for another
> arch:
>
> #define CLEAR_CACHE do { unsigned long ps = getpagesize(); \
> char *beg = (char *)((unsigned long )(memory->cfd.cfd_start) & ~(ps-1)); \
> char *end = ROUND_UP(memory->cfd.cfd_start + \
> memory->cfd.cfd_size,ps); \
> mprotect(beg,end-beg,PROT_READ|PROT_WRITE|PROT_EXEC);} while(0)
>
> Can mprotect be used in this way to portably flush the data cache?
I very much doubt it. I don't see any real connection between page
protection and the cache. Some OS might decide that changing
protection is a reason to flush the cache; another might not. For
some CPU targets this may be necessary or useful, for others it may be
entirely superfluous.
paul
next prev parent reply other threads:[~2002-06-07 13:55 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-02 20:42 Camm Maguire
2002-06-02 22:06 ` Daniel Jacobowitz
2002-06-03 15:08 ` Camm Maguire
2002-06-03 15:29 ` Daniel Jacobowitz
2002-06-04 14:34 ` [Gcl-devel] " Camm Maguire
2002-06-04 14:42 ` Geoff Keating
2002-06-04 14:44 ` Daniel Jacobowitz
2002-06-04 15:06 ` Camm Maguire
2002-06-04 15:33 ` Daniel Jacobowitz
2002-06-05 16:03 ` Camm Maguire
2002-06-05 16:09 ` Daniel Jacobowitz
2002-06-05 17:21 ` Camm Maguire
2002-06-05 18:13 ` Daniel Jacobowitz
2002-06-06 20:14 ` Camm Maguire
2002-06-06 21:00 ` Daniel Jacobowitz
2002-06-06 22:03 ` Jason R Thorpe
2002-06-07 6:55 ` Paul Koning [this message]
2002-06-10 15:35 ` Camm Maguire
2002-06-10 16:10 ` Daniel Jacobowitz
2002-06-14 8:51 ` Flushing the d-cache (was Re: BFD relocations) Camm Maguire
2002-06-14 9:16 ` Philip Blundell
2002-06-14 12:22 ` [Gcl-devel] " Camm Maguire
2002-06-14 12:34 ` Philip Blundell
2002-06-14 13:10 ` Andreas Schwab
2002-06-17 15:37 ` Richard Zidlicky
2002-06-17 20:09 ` [Gcl-devel] " Camm Maguire
2002-06-19 11:25 ` MIPS bfd_get_relocated_section_contents broken Camm Maguire
2002-07-27 0:06 ` [Gcl-devel] Re: BFD relocations Camm Maguire
2002-07-27 9:08 ` Alan Modra
2002-07-27 12:23 ` Camm Maguire
2002-07-30 0:46 ` Alan Modra
2002-08-11 9:26 ` BFD relocations -- alpha Camm Maguire
2002-06-05 20:09 ` [Gcl-devel] Re: BFD relocations Geoff Keating
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=15616.47945.929255.781190@pkoning.dev.equallogic.com \
--to=pkoning@equallogic.com \
--cc=binutils@sources.redhat.com \
--cc=camm@enhanced.com \
--cc=drow@mvista.com \
--cc=gcl-devel@gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).