]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Move coreboot-table detection into common code
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:12:58 +0000 (09:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:47:06 +0000 (17:47 +0800)
commit33139a0bc7645f73f6e7dd152336e1ee00c9d40e
tree0bdce9170a4d567a622f1084c26f97a9ad35f4f1
parentba974a0137edc86cff9727a83cf6be154ab18ef0
x86: Move coreboot-table detection into common code

To support detecting booting from coreboot, move the code which locates
the coreboot tables into a common place. Adjust the algorithm slightly to
use a word comparison instead of string, since it is faster.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: correct the comments to 960KB]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/coreboot/tables.c
arch/x86/cpu/i386/cpu.c
arch/x86/include/asm/coreboot_tables.h