[PATCH] cache: provide <asm/cache.h> for x86 and sandbox as well

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Dec 15 00:50:58 PST 2025


This way we have a sync_caches_for_execution definition that can be used
for the EFI loader on all architectures.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/sandbox/include/asm/cache.h | 8 ++++++++
 arch/x86/include/asm/cache.h     | 8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 arch/sandbox/include/asm/cache.h
 create mode 100644 arch/x86/include/asm/cache.h

diff --git a/arch/sandbox/include/asm/cache.h b/arch/sandbox/include/asm/cache.h
new file mode 100644
index 000000000000..65031c59f5d0
--- /dev/null
+++ b/arch/sandbox/include/asm/cache.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _ASM_SANDBOX_CACHE_H
+#define _ASM_SANDBOX_CACHE_H
+
+#include <asm-generic/cache.h>
+
+#endif
diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h
new file mode 100644
index 000000000000..9f0abfa3e8fb
--- /dev/null
+++ b/arch/x86/include/asm/cache.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _ASM_X86_CACHE_H
+#define _ASM_X86_CACHE_H
+
+#include <asm-generic/cache.h>
+
+#endif
-- 
2.47.3




More information about the barebox mailing list