summaryrefslogtreecommitdiffstats
path: root/lib/asm-offsets.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-06 13:20:10 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:10 +0100
commitf67cd51e654ba6498230314b6e82b4dbbd4bfca7 (patch)
tree9f0b5e3b81734484df64e8b679a0eb66532ec49a /lib/asm-offsets.c
parente1ffd81797d59652124bd9cda813a58644f5dea9 (diff)
downloadblackbird-obmc-uboot-f67cd51e654ba6498230314b6e82b4dbbd4bfca7.tar.gz
blackbird-obmc-uboot-f67cd51e654ba6498230314b6e82b4dbbd4bfca7.zip
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>
Diffstat (limited to 'lib/asm-offsets.c')
-rw-r--r--lib/asm-offsets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 129bc3e2af..580f763da6 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -31,6 +31,9 @@ int main(void)
#ifdef CONFIG_SYS_MALLOC_F_LEN
DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
#endif
+#ifdef CONFIG_X86
+ DEFINE(GD_BIST, offsetof(struct global_data, arch.bist));
+#endif
#if defined(CONFIG_ARM)
OpenPOWER on IntegriCloud