All of lore.kernel.org
 help / color / mirror / Atom feed
From: Txema Lopez <tlopez@aotek.es>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Fixup relocation patch.]
Date: Wed, 14 Feb 2007 12:27:00 +0100	[thread overview]
Message-ID: <45D2F204.8050404@aotek.es> (raw)
In-Reply-To: <F6AD7E21CDF4E145A44F61F43EE6D939D11291@tmnt04.transmode.se>

Joakim Tjernlund wrote:

>Hi Txema
>
>Can you give an example on how to change these references to
>TEXT_BASE/CFG_MONITOR_BASE?
>
> Regards
>         Jocke
>  
>
Hi Jocke,

An example in C code in the board_init_f() function.

#ifdef CFG_BOOT_RELOCATABLE
len = (ulong)&_end - (ulong)&_start ;
#else
len = (ulong)&_end - CFG_MONITOR_BASE;
#endif

An example in assembler in the relocate_code function.

#ifdef CFG_BOOT_RELOCATABLE
lwz r4, GOT(_start)
#else
lis r4, CFG_MONITOR_BASE at h /* Source Address */
ori r4, r4, CFG_MONITOR_BASE at l
#endif


Anyway, if you are very interested in it I can made a patch for the 
1.1.6 version (but merged with our custom board code) and send it to you 
out of the list to take a look.

Best regards,
Txema.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlopez.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070214/fe0d3da5/attachment.vcf 

  reply	other threads:[~2007-02-14 11:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14  9:24 [U-Boot-Users] [PATCH] Fixup relocation patch.] Joakim Tjernlund
2007-02-14 11:27 ` Txema Lopez [this message]
2007-02-14 12:07   ` Joakim Tjernlund
     [not found] <45D1DB7D.7050403@fagorautomation.es>
2007-02-13 16:21 ` Txema Lopez
2007-02-13 16:40   ` Joakim Tjernlund
2007-02-13 16:48     ` Grant Likely
2007-02-13 16:51   ` Grant Likely
2007-02-13 18:23     ` J. William Campbell
2007-02-14  6:50       ` Grant Likely
2007-02-13 18:37     ` Joakim Tjernlund
2007-02-14  8:01       ` Txema Lopez
2007-02-14  7:30     ` Txema Lopez

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=45D2F204.8050404@aotek.es \
    --to=tlopez@aotek.es \
    --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.