os/dd: add missing semicolon to new cache logic

This commit is contained in:
Michael Scire 2022-03-23 00:29:49 -07:00 committed by SciresM
parent f95bdb87a0
commit 01fd324d4f
2 changed files with 3 additions and 3 deletions

View File

@ -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. */ /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */
tlr->cache_maintenance_flag = 1; 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. */ /* Iterate, flushing cache lines. */
for (uintptr_t cur = reinterpret_cast<uintptr_t>(addr) & ~(cache_line_size - 1); cur < end_addr; cur += cache_line_size) { for (uintptr_t cur = reinterpret_cast<uintptr_t>(addr) & ~(cache_line_size - 1); cur < end_addr; cur += cache_line_size) {

View File

@ -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. */ /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */
tlr->cache_maintenance_flag = 1; tlr->cache_maintenance_flag = 1;
ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; } ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; };
#endif #endif
/* Invalidate the cache. */ /* 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. */ /* Note to the kernel that we're performing cache maintenance, in case we get interrupted while touching cache lines. */
tlr->cache_maintenance_flag = 1; tlr->cache_maintenance_flag = 1;
ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; } ON_SCOPE_EXIT { tlr->cache_maintenance_flag = 0; };
#endif #endif
/* Invalidate the cache. */ /* Invalidate the cache. */