summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/handoff.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 17:11:41 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 08:57:36 +0300
commitc3863eadbc60d21b234ac5fb15c525b3cbc4f637 (patch)
tree0df7f52a65fb77d8515981bb83b0ae282e2fe1e8 /arch/x86/include/asm/handoff.h
parent12c81b2f4196ed7eb9f2d7d377b34280b1ca26c1 (diff)
downloadu-boot-c3863eadbc60d21b234ac5fb15c525b3cbc4f637.tar.xz
x86: fsp: Save usable RAM and hob_list in the handoff area
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>
Diffstat (limited to 'arch/x86/include/asm/handoff.h')
-rw-r--r--arch/x86/include/asm/handoff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/handoff.h b/arch/x86/include/asm/handoff.h
index 4d18d59efe..aec49b9b81 100644
--- a/arch/x86/include/asm/handoff.h
+++ b/arch/x86/include/asm/handoff.h
@@ -9,7 +9,15 @@
#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