[U-Boot] [PATCH v3 1/6] x86: Import code from coreboot's libpayload to parse the coreboot table
Graeme Russ
graeme.russ at gmail.com
Tue Dec 6 11:35:42 CET 2011
Hi Gabe,
On 06/12/11 09:09, Gabe Black wrote:
> This change also forces the lib_sysinfo structure to be in the .data
> section. Otherwise it ends up in the .bss section. U-boot assumes that it
> doesn't need to copy it over during relocation, and instead fills that
> whole section with zeroes. If we really were booting from ROM that would be
> appropriate, but we need some information from the coreboot tables (memory
> size) before then and have to fill that structure before relocation. We
> skirt u-boot's assumption by putting this in .data where it assumes there
> is still read only but non-zero data.
>
> Signed-off-by: Gabe Black <gabeblack at chromium.org>
> ---
> Changes in v2:
> - Move arch/x86/include/asm/ic/coreboot/* to
> arch/x86/include/asm/arch-coreboot/*
> - Merge the lib_sysinfo change into this one.
>
> arch/x86/cpu/coreboot/Makefile | 3 +
> arch/x86/cpu/coreboot/ipchecksum.c | 54 +++++
> arch/x86/cpu/coreboot/sysinfo.c | 39 ++++
> arch/x86/cpu/coreboot/tables.c | 183 +++++++++++++++++
> arch/x86/include/asm/arch-coreboot/ipchecksum.h | 37 ++++
> arch/x86/include/asm/arch-coreboot/sysinfo.h | 64 ++++++
> arch/x86/include/asm/arch-coreboot/tables.h | 241 +++++++++++++++++++++++
> board/chromebook-x86/coreboot/coreboot.c | 10 +
> 8 files changed, 631 insertions(+), 0 deletions(-)
> create mode 100644 arch/x86/cpu/coreboot/ipchecksum.c
> create mode 100644 arch/x86/cpu/coreboot/sysinfo.c
> create mode 100644 arch/x86/cpu/coreboot/tables.c
> create mode 100644 arch/x86/include/asm/arch-coreboot/ipchecksum.h
> create mode 100644 arch/x86/include/asm/arch-coreboot/sysinfo.h
> create mode 100644 arch/x86/include/asm/arch-coreboot/tables.h
Applied to u-boot-x86/next
Regards,
Graeme
More information about the U-Boot
mailing list