
2 Oct
2014
2 Oct
'14
7:18 a.m.
Hi Simon,
On Wed, 1 Oct 2014 17:43:19 -0600 Simon Glass sjg@chromium.org wrote:
The pre-reloc malloc() area goes below global_data so uses the same mechanism.
Yes it is true that strictly speaking we should not use data before relocation. I suppose we could move cur_dev to global_data instead for this particular case. It doesn't really scale to other drivers, but then I expect that only serial needs to keep a 'current' pointer before relocation, and even that will eventually go away once the serial stuff is cleaned up.
Do you expect any other drivers that must be bound before relocation? (except DEMO driver of sandbox)
Only UART?
Best Regards Masahiro Yamada