summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorAnton Blanchard <[email protected]>2024-08-08 02:14:17 +0000
committerLeo Yu-Chi Liang <[email protected]>2024-10-29 19:58:14 +0800
commit8e1acda14ea0ac08a77ea7d3d40ab7255ccbe4c5 (patch)
treeee007052b3eda1aa665741fecb69f2de7a4234df /arch/riscv/include
parent9d688e6da5c97fc7758bfa2367fe29cb75ae4868 (diff)
riscv: resume needs to be a global
If we take an exception before u-boot is relocated, there's a good chance we will end up in an endless loop of exceptions because resume is invalid until after relocation. Signed-off-by: Anton Blanchard <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h
index 593d9276d35..d356752a56a 100644
--- a/arch/riscv/include/asm/global_data.h
+++ b/arch/riscv/include/asm/global_data.h
@@ -42,6 +42,7 @@ struct arch_global_data {
#ifdef CONFIG_SMBIOS
ulong smbios_start; /* Start address of SMBIOS table */
#endif
+ struct resume_data *resume;
};
#include <asm-generic/global_data.h>