mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user