[PATCH 10/10] x86: Add cleanup_before_linux()

Simon Glass sjg at chromium.org
Wed Jan 7 01:31:27 CET 2026


From: Simon Glass <sjg at chromium.org>

This function is not present on x86, but there is an x86-specific
version which is never called. Add the former, making it call the
latter.

Signed-off-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Simon Glass <simon.glass at canonical.com>
---

 arch/x86/cpu/cpu.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index c373b14df30..f756a9ebf09 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -80,6 +80,11 @@ int __weak x86_cleanup_before_linux(void)
 	return 0;
 }
 
+int cleanup_before_linux(void)
+{
+	return x86_cleanup_before_linux();
+}
+
 int x86_init_cache(void)
 {
 	enable_caches();
-- 
2.43.0



More information about the U-Boot mailing list