From 8c955587f46f995d1bb1086f0a6c908976faa4b7 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 --- .../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/libraries/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp b/libraries/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp index a6fbb197d..c4c0528c1 100644 --- a/libraries/libstratosphere/source/os/impl/os_cache_impl.os.horizon.hpp +++ b/libraries/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/libraries/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp b/libraries/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp index 5c94c2a8a..8930d2158 100644 --- a/libraries/libvapours/source/dd/impl/dd_cache_impl.os.horizon.hpp +++ b/libraries/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. */