mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-28 21:09:00 +09:00
![Simon Glass](/assets/img/avatar_default.png)
The useable RAM is calculated when the RAM is inited. Save this value so that it can be easily used in U-Boot proper. Also save a pointer to the hob list so that it is accessible (before relocation only) in U-Boot proper. This avoids having to scan it in SPL, for everything U-Boot proper might need later. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: guard handoff_arch_save() with IS_ENABLED(CONFIG_USE_HOB)] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
24 lines
514 B
C
24 lines
514 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Architecture-specific SPL handoff information for x86
|
|
*
|
|
* Copyright 2018 Google, Inc
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#ifndef __x86_asm_handoff_h
|
|
#define __x86_asm_handoff_h
|
|
|
|
/**
|
|
* struct arch_spl_handoff - architecture-specific handoff info
|
|
*
|
|
* @usable_ram_top: Value returned by board_get_usable_ram_top() in SPL
|
|
* @hob_list: Start of FSP hand-off blocks (HOBs)
|
|
*/
|
|
struct arch_spl_handoff {
|
|
ulong usable_ram_top;
|
|
void *hob_list;
|
|
};
|
|
|
|
#endif
|