meso: Implement LightSession functions

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:08 -07:00
1 parent be3550d382
commit acf32f841c
8 files changed
+177 -18

No files matched your search

+2 -3
View File
@@ -1,5 +1,5 @@
#include <mesosphere/interrupts/KAlarm.hpp>
#include <mesosphere/threading/KScheduler.hpp>
#include <mesosphere/threading/KScopedCriticalSection.hpp>
#include <mesosphere/arch/KInterruptMaskGuard.hpp>
namespace mesosphere
@@ -24,8 +24,7 @@ void KAlarm::RemoveAlarmable(const IAlarmable &alarmable)
void KAlarm::HandleAlarm()
{
{
KCriticalSection &critsec = KScheduler::GetCriticalSection();
std::scoped_lock criticalSection{critsec};
KScopedCriticalSection critsec{};
std::scoped_lock guard{spinlock};
KSystemClock::SetInterruptMasked(true); // mask timer interrupt