LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File efi_loader-Provide-icache-flush-stub.patch of Package u-boot-rpi2 (Project home:algraf:rpi-efi)

From ef75ea486f383e87bef40446d1c993704c688187 Mon Sep 17 00:00:00 2001
From: Alexander Graf <agraf@suse.de>
Date: Thu, 3 Mar 2016 00:55:22 +0100
Subject: [PATCH] efi_loader: Provide icache flush stub

If the platform doesn't implement a function to invalidate all icache,
let's just cross our fingers that things happen to work out and roll on.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 lib/efi_loader/efi_image_loader.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c
index 4479726..d558f5a 100644
--- a/lib/efi_loader/efi_image_loader.c
+++ b/lib/efi_loader/efi_image_loader.c
@@ -73,6 +73,11 @@ static void efi_loader_relocate(const IMAGE_BASE_RELOCATION *rel,
 	}
 }
 
+void __weak invalidate_icache_all(void)
+{
+	/* If the system doesn't support icache_all flush, cross our fingers */
+}
+
 /*
  * This function loads all sections from a PE binary into a newly reserved
  * piece of memory. On successful load it then returns the entry point for
-- 
2.7.1