public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Scott Bambrough <scottb@netwinder.org>
To: Philip Blundell <pb@labs.futuretv.com>
Cc: libc-hacker mailing list <libc-hacker@sourceware.cygnus.com>
Subject: Re: Patch to allow ARM dynamic linker to fix up PC24 relocs...
Date: Fri, 17 Dec 1999 09:40:00 -0000	[thread overview]
Message-ID: <385A74A0.8E47B286@netwinder.org> (raw)
In-Reply-To: <E11z0kF-0000TS-00@fountain.labs.futuretv.com>

Philip Blundell wrote:
> 
> >+  register unsigned long _beg __asm ("a1") = (unsigned long)(BEG);    \
> >+  register unsigned long _end __asm ("a2") = (unsigned long)((END) - (BEG));\
> >+  register unsigned long _flg __asm ("a3") = 0;
> 
> Did you check that this works properly?  I just inspected the kernel code
> again and it still looks to me like R1 is supposed to actually be the end
> address (and the comment in traps.c is wrong).

Yes, I checked.  It works with my test cases, and Mozilla.  I posted a
question on the ARM Linux list about the second parameter and got two
replys.  One from Russell, saying it was a length, the other from you
saying it was the end address.  The comment in traps.c led me to believe
it was a length.  It was 2-1 in favour of the length.

It's a good thing you are persistent.  I just went and checked the
actual SA110 assembler code for clear_cache_area.  The comment there
says it is the end address.  Inspection of the code verifies it is
correct.  My code was working however, because start - length > 32K. 
This triggers a call to flush_cache_all instead of just those cache
lines.  I'll fix it up and resubmit the patch.

Shouldn't have been so lazy, and checked the source before I guess. 
Thanks Phil.

Cheers,
 
Scott

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org

  parent reply	other threads:[~1999-12-17  9:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-07 11:50 Scott Bambrough
1999-12-07 12:12 ` Philip Blundell
1999-12-07 18:37   ` Richard Henderson
     [not found]     ` <E11veej-0007M5-00@>
1999-12-17  8:53       ` Scott Bambrough
     [not found]         ` <E11z0kF-0000TS-00@fountain.labs.futuretv.com>
1999-12-17  9:40           ` Scott Bambrough [this message]
1999-12-07 23:38 ` Ulrich Drepper
1999-12-21  8:19 Scott Bambrough
1999-12-21  8:29 ` Ulrich Drepper
1999-12-21  8:37   ` Scott Bambrough

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=385A74A0.8E47B286@netwinder.org \
    --to=scottb@netwinder.org \
    --cc=libc-hacker@sourceware.cygnus.com \
    --cc=pb@labs.futuretv.com \
    /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).