From 146326619080ae45f7f3192fe6563927276f8c97 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 27 Feb 2018 19:50:31 -0800 Subject: [PATCH] Status callback keys have guaranteed atomicity from caller locks. --- exosphere/src/smc_api.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/exosphere/src/smc_api.c b/exosphere/src/smc_api.c index f801c388d..7ba07486a 100644 --- a/exosphere/src/smc_api.c +++ b/exosphere/src/smc_api.c @@ -142,7 +142,6 @@ uint64_t g_smc_callback_key = 0; uint64_t try_set_smc_callback(uint32_t (*callback)(void *, uint64_t)) { uint64_t key; - /* TODO: Atomics... */ if (g_smc_callback_key) { return 0; } @@ -154,7 +153,6 @@ uint64_t try_set_smc_callback(uint32_t (*callback)(void *, uint64_t)) { } void clear_smc_callback(uint64_t key) { - /* TODO: Atomics... */ if (g_smc_callback_key == key) { g_smc_callback_key = 0; }