]> git.baikalelectronics.ru Git - uboot.git/commit
x86: fsp: Reinit the FPU after FSP meminit
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2020 03:12:12 +0000 (21:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
commit32986c1cc587411977290fe78fee82cb5cd1c27a
tree3694a1863dae64f0ef7c4363d8cf607b52340cb7
parent03642ed11bf4c20379959deba83256a14b795bc0
x86: fsp: Reinit the FPU after FSP meminit

The APL FSP appears to leave the FPU in a bad state in that it has
registers in use. This causes an error when the next FPU operation is
performed.

Work around this by re-resetting the FPU after calling FSP-M. This allows
the freetype console to work correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/i386/cpu.c
arch/x86/include/asm/u-boot-x86.h
arch/x86/lib/fsp2/fsp_meminit.c