.
.
.
common/stdio.c
1 int stdio_init_tables(void)
2 {
3 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
4 /* already relocated for current ARM implementation */
5 ulong relocation_offset = gd->reloc_off;
6 int i;
7
8 /* relocate device name pointers */
9 for (i = 0; i < (sizeof (stdio_names) / sizeof (char *)); ++i) {
10 stdio_names[i] = (char *) (((ulong) stdio_names[i]) +
11 relocation_offset);
12 }
13 #endif /* CONFIG_NEEDS_MANUAL_RELOC */
14
15 /* Initialize the list */
16 INIT_LIST_HEAD(&(devs.list));
17
18 return 0;
19 }