Linux PARISC architecture development
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: randolph@tausq.org, PARISC list <parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] Question about cache flushing and fork
Date: 16 Dec 2003 19:36:44 -0500	[thread overview]
Message-ID: <1071621405.2080.160.camel@mulgrave> (raw)
In-Reply-To: <200312160506.hBG56wnD015891@hiauly1.hia.nrc.ca>

> I have a different cache question.  GCC uses a stack trampoline
> to call nested functions.  This trampoline is on the stack and
> has to be flushed before being used.  A few weeks ago a trampoline
> testcase was added.  This testcase failed under hppa64-hpux.  It
> turned out that the code assumed that the PA 2.0 cache line was
> 32 bytes (it was apparently derived from the original PA 1.1 code).

Could you elaborate on the context for this?  It was my understanding
that to flush an area for execution, you simply loop over the area
striding by the cache line width, issuing fdc; fic. (at least, that's
how we do it in the kernel).

If we think the cache line is *smaller* than it actually is, all this
does is issue more flushes than necessary to the cache lines, I don't
understand how it results in an observable failure.

James

  parent reply	other threads:[~2003-12-17  0:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16  4:40 [parisc-linux] Question about cache flushing and fork Randolph Chung
2003-12-16  4:48 ` [parisc-linux] " David S. Miller
2003-12-16 15:53   ` LaMont Jones
2003-12-16 15:53   ` LaMont Jones
2003-12-16  4:48 ` David S. Miller
2003-12-16  4:56 ` Linus Torvalds
2003-12-16  4:56 ` Linus Torvalds
2003-12-16  5:06 ` [parisc-linux] " John David Anglin
2003-12-16 16:03   ` LaMont Jones
2003-12-16 22:51     ` John David Anglin
2003-12-16 23:23       ` Stan Sieler
2003-12-17  0:30       ` LaMont Jones
2003-12-17  1:03         ` Stan Sieler
2003-12-17  0:36   ` James Bottomley [this message]
2003-12-17  0:57     ` John David Anglin
2003-12-17  1:16       ` LaMont Jones
2003-12-17  1:46         ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
2003-12-16  4:40 Randolph Chung

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=1071621405.2080.160.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=randolph@tausq.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