]> git.dujemihanovic.xyz Git - u-boot.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)
commit3dada5a1a89f336f4b751548117949cf255cfcf6
tree3694a1863dae64f0ef7c4363d8cf607b52340cb7
parent61608f395e7dcb2be6060407a72a1149b046430a
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