From mboxrd@z Thu Jan 1 00:00:00 1970 From: Txema Lopez Date: Wed, 14 Feb 2007 12:27:00 +0100 Subject: [U-Boot-Users] [PATCH] Fixup relocation patch.] In-Reply-To: References: Message-ID: <45D2F204.8050404@aotek.es> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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