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 <[email protected]>
---
 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


Reply via email to