From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Tue, 06 Dec 2011 21:35:42 +1100 Subject: [U-Boot] [PATCH v3 1/6] x86: Import code from coreboot's libpayload to parse the coreboot table In-Reply-To: <1323122967-18033-2-git-send-email-gabeblack@chromium.org> References: <1322911130-29856-1-git-send-email-gabeblack@chromium.org> <1323122967-18033-2-git-send-email-gabeblack@chromium.org> Message-ID: <4EDDEFFE.2010707@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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