From: Renaud Barbier <renaud.barbier@ge.com>
To: barebox@lists.infradead.org
Subject: start_barebox
Date: Wed, 14 Sep 2011 13:58:50 +0100 [thread overview]
Message-ID: <4E70A50A.4080001@ge.com> (raw)
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
reply other threads:[~2011-09-14 12:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4E70A50A.4080001@ge.com \
--to=renaud.barbier@ge.com \
--cc=barebox@lists.infradead.org \
/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.