1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

Conditionally perform common relocation fixups

Add #ifdefs where necessary to not perform relocation fixups.  This
allows boards/architectures which support relocation to trim a decent
chunk of code.

Note that this patch doesn't add #ifdefs to architecture-specific code
which does not support relocation.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
Peter Tyser
2009-09-21 11:20:36 -05:00
committed by Wolfgang Denk
parent 3cbcfa70b1
commit 521af04d85
13 changed files with 41 additions and 5 deletions

View File

@@ -201,7 +201,8 @@ int stdio_deregister(char *devname)
int stdio_init (void)
{
#ifndef CONFIG_ARM /* already relocated for current ARM implementation */
#if !defined(CONFIG_ARM) && !defined(CONFIG_RELOC_FIXUP_WORKS)
/* already relocated for current ARM implementation */
ulong relocation_offset = gd->reloc_off;
int i;
@@ -210,7 +211,7 @@ int stdio_init (void)
stdio_names[i] = (char *) (((ulong) stdio_names[i]) +
relocation_offset);
}
#endif
#endif /* !ARM && !CONFIG_RELOC_FIXUP_WORKS */
/* Initialize the list */
INIT_LIST_HEAD(&(devs.list));