meso: Implement LightSession functions

This commit is contained in:
TuxSH
2018-11-12 12:30:58 +01:00
committed by Michael Scire
parent be3550d382
commit acf32f841c
8 changed files with 177 additions and 18 deletions

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