x86: Save the BIST value on reset
authorSimon Glass <sjg@chromium.org>
Thu, 6 Nov 2014 20:20:10 +0000 (13:20 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 06:24:10 +0000 (07:24 +0100)
commitf67cd51e654ba6498230314b6e82b4dbbd4bfca7
tree9f0b5e3b81734484df64e8b679a0eb66532ec49a
parente1ffd81797d59652124bd9cda813a58644f5dea9
x86: Save the BIST value on reset

The built in self test value is available in register eax on start-up. Save
it so that it can be accessed later. Unfortunately we must wait until the
global_data is available before we can do this, so there is a little bit of
shuffling to keep it around.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/start.S
arch/x86/cpu/start16.S
arch/x86/include/asm/global_data.h
lib/asm-offsets.c