[U-Boot] [PATCH v2 00/10] bootstage: TPL and SPL improvements

Simon Glass sjg at chromium.org
Mon Oct 21 23:26:42 UTC 2019


At present bootstage cannot be fully used on x86 since it violates a few
U-Boot rules, mostly accessing pre-relocation memory after relocation.
This series corrects this and adds better support for using bootstage in
TPL.

It also includes a few improvements to tiny-printf.

Changes in v2:
- Add a new patch to support %p without DEBUG
- Adjust SPL logic to avoid failing if TPL does not provide bootstage data
- Add a new patch to support %p without DEBUG in tiny-printf

Simon Glass (10):
  tiny-printf: Reduce size by removing ctype
  tiny-printf: Add print_grouped_ull()
  tiny-printf: Reorder code to support %p
  bloblist: Reserve an aligned base
  bootstage: Store the next ID in the stash
  bootstage: Fix counting of entries in stash
  bootstage: Avoid conflicts between stash/unstash
  bootstage: Correct relocation algorithm
  bootstage: Mark the start/end of TPL and SPL separately
  bootstage: Allow SPL to obtain bootstage info from TPL

 common/board_f.c    |  2 ++
 common/board_r.c    |  1 -
 common/bootstage.c  | 53 ++++++++++++++++++++++++++++++---------------
 common/spl/spl.c    | 23 ++++++++++++++++----
 include/bootstage.h |  2 ++
 lib/tiny-printf.c   | 29 ++++++++++++++++++++-----
 6 files changed, 81 insertions(+), 29 deletions(-)

-- 
2.23.0.866.gb869b98d4c-goog



More information about the U-Boot mailing list