From 1793ce7aeae2e104a500e1dd4709ecd06d11a0ff Mon Sep 17 00:00:00 2001 From: Haojian Zhuang Date: Sat, 26 Aug 2017 16:05:30 +0800 Subject: Platforms/HiKey: fix to clear reboot reason Flush caches after reboot reason is cleared. Otherwise, the clearing feature doesn't work in release mode. Signed-off-by: Haojian Zhuang --- Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Platforms/Hisilicon/HiKey') diff --git a/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c b/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c index 2137b0e..952e3ef 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c +++ b/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c @@ -323,6 +323,7 @@ VirtualKeyboardClear ( } if (MmioRead32 (ADB_REBOOT_ADDRESS) == ADB_REBOOT_BOOTLOADER) { MmioWrite32 (ADB_REBOOT_ADDRESS, ADB_REBOOT_NONE); + WriteBackInvalidateDataCacheRange ((VOID *)ADB_REBOOT_ADDRESS, 4); } return EFI_SUCCESS; } -- cgit v1.2.3