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

Simon Glass sjg at chromium.org
Mon Aug 3 02:10:07 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.


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               | 86 +++++---------------------------------
 arch/x86/include/asm/global_data.h |  4 +-
 arch/x86/include/asm/u-boot-x86.h  |  1 -
 common/board_f.c                   | 19 ++++++---
 include/asm-generic/global_data.h  |  2 +-
 include/common.h                   | 40 ++++++++++++++++++
 7 files changed, 75 insertions(+), 88 deletions(-)

-- 
2.5.0.rc2.392.g76e840b



More information about the U-Boot mailing list