All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rafal Jaworowski <raj@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] API: Optimize signature searching scheme in the glue layer.
Date: Mon, 04 Aug 2008 15:30:08 +0200	[thread overview]
Message-ID: <48970460.2040701@semihalf.com> (raw)
In-Reply-To: <20080804125020.894F624848@gemini.denx.de>

Wolfgang Denk wrote:
> In message <12178539203180-git-send-email-raj@semihalf.com> you wrote:
>> De-hard code the range in RAM we search for API signature, which might not be
>> uniform accross architectures and board configurations. Instead use current
>> global_data pointer as a hint to narrow down the range the [malloc'ed] signature
>> could reside.
> 
> Which is the exact rationale of this? Note that the GD pointer can
> point basicly anywhere - some part of dual ported RAM, SRAM, OCM, ...

The idea was to discover the proximity of where to look for the API signature
in run-time and only search within some range around it. This way we'd drop
static definitions of the search range.

The assumption was that global data should be close enough to U-Boot's malloc
area (where the signature is stored) and this works for us on PPC and ARM. Do
you see any problems with this approach in general i.e. can it really happen
that after relocation we end up with global data stored at distant location
than other U-Boot data?

kind regards,
Rafal

  reply	other threads:[~2008-08-04 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-04 12:45 [U-Boot-Users] [PATCH] API: Optimize signature searching scheme in the glue layer Rafal Jaworowski
2008-08-04 12:50 ` Wolfgang Denk
2008-08-04 13:30   ` Rafal Jaworowski [this message]
2008-08-04 15:24     ` Wolfgang Denk

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=48970460.2040701@semihalf.com \
    --to=raj@semihalf.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.