Skip to content

RFC: Move arch-specific global data into its own structure

Wolfgang Denk u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 57 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 57 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/57] RFC: Move arch-specific global data into its own structure

Dear Graeme Russ,

Quoted 7 lines · In message <CALButCJqp4CPvpwc_ri9fp6tcd=Az-7Si=FMMc0adWBHMDtVQw@mail.gmail.com>…

I agree. While gd->arch does look a bit 'ugly', it immediately unlocks the path forward to unifying the init loop. The x86 board.c would be a good start (IMNSHO) by simply making the init sequence arrays extern. From there we can tackle what really needs to be in gd and what can simply be run of the mill global variables. I think most of what is under gd->arch may just 'fall out'

OK, it seems I have the weekest arguments. I will not fight about that.

But I would definitely like to know exactly how much we pay for in terms of code size.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Program maintenance is an entropy-increasing process,  and  even  its
most skilfull execution only delays the subsidence of the system into
unfixable obsolescence.       - Fred Brooks, "The Mythical Man Month"