From d97cdde1aa6ee808dea68bee904eeffc9a06c5ba Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 23 Mar 2022 00:29:49 -0700 Subject: [PATCH] os/dd: add missing semicolon to new cache logic --- libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp | 2 +- libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp b/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp index a6fbb197..c4c0528c 100644 --- a/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp +++ b/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp @@ -37,7 +37,7 @@ namespace ams::os::impl { /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */ tlr->cache_maintenance_flag = 1; - ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; } + ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; }; /* Iterate, flushing cache lines. */ for (uintptr_t cur = reinterpret_cast(addr) & ~(cache_line_size - 1); cur < end_addr; cur += cache_line_size) { diff --git a/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp b/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp index 5c94c2a8..8930d215 100644 --- a/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp +++ b/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp @@ -37,7 +37,7 @@ namespace ams::dd::impl { /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */ tlr->cache_maintenance_flag = 1; - ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; } + ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; }; #endif /* Invalidate the cache. */ @@ -77,7 +77,7 @@ namespace ams::dd::impl { /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */ tlr->cache_maintenance_flag = 1; - ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; } + ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; }; #endif /* Invalidate the cache. */