mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* start_barebox
@ 2011-09-14 12:58 Renaud Barbier
  0 siblings, 0 replies; only message in thread
From: Renaud Barbier @ 2011-09-14 12:58 UTC (permalink / raw)
  To: barebox

I was wondering whether there is an error in the function start_barebox
  below at line 119 and 122.
Is not it missing the RELOC macro?

"memcpy(RELOC(&__early_init_data_begin), init_data_ptr" and

   init_data_ptr = RELOC(&__early_init_data_begin);


void start_barebox (void)
  108 {
  109         initcall_t *initcall;
  110         int result;
  111 #ifdef CONFIG_COMMAND_SUPPORT
  112         struct stat s;
  113 #endif
  114
  115 #ifdef CONFIG_HAS_EARLY_INIT
  116         /* We are running from RAM now, copy early initdata from
  117          * early RAM to RAM
  118          */
  119         memcpy(&__early_init_data_begin, init_data_ptr,
  120                         (ulong)&__early_init_data_end -
  121                         (ulong)&__early_init_data_begin);
  122         init_data_ptr = &__early_init_data_begin;
  123 #endif /* CONFIG_HAS_EARLY_INIT */
  124

-- 
Renaud Barbier
14, Links Place
3/2 great Michael House
Edinburgh, EH67EN
Tel: +44 131 561 3532


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-14 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-14 12:58 start_barebox Renaud Barbier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox