[U-Boot] [PATCH v2 0/5] x86: Move x86 to use board_init_f_mem() instead of assembler

Simon Glass sjg at chromium.org
Tue Aug 11 04:44:27 CEST 2015


Much of the early-init assembler on x86 can be removed if we use the new
board_init_f_mem() function. At present only PowerPC uses it, but we should
try to move more archs over.

This has been contemplated for a while but it is time to take the plunge.

Changes in v2:
- Correct logic to round down instead of up
- Drop unused 'reserve_size' argument
- Rename arch_setup_gdt() to arch_setup_gd()
- Expand the comment about the 64-byte stack space
- Fix a comma which should be a period
- Add a comment as to why we can't compile the weak arch_setup_gd() on x86
- Don't rely on value of %edx from board_init_f_mem()

Simon Glass (5):
  x86: Remove init_gd() function
  Align global_data to a 16-byte boundary
  Allow arch-specific setting of global_data in board_init_f_mem()
  x86: Move the GDT into global_data
  x86: Switch to using generic global_data setup

 arch/x86/cpu/cpu.c                 | 11 +++--
 arch/x86/cpu/start.S               | 95 ++++++--------------------------------
 arch/x86/include/asm/global_data.h |  4 +-
 arch/x86/include/asm/u-boot-x86.h  |  1 -
 common/board_f.c                   | 17 +++++--
 include/asm-generic/global_data.h  |  2 +-
 include/common.h                   | 43 +++++++++++++++++
 7 files changed, 81 insertions(+), 92 deletions(-)

-- 
2.5.0.rc2.392.g76e840b



More information about the U-Boot mailing list