Add mesosphere (VERY VERY WIP)

This commit is contained in:
TuxSH
2018-10-31 21:47:31 +01:00
committed by Michael Scire
parent 50e307b4b7
commit 745fa84e5e
56 changed files with 5033 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <mesosphere/interfaces/IAlarmable.hpp>
#include <mesosphere/core/KCoreContext.hpp>
#include <mesosphere/interrupts/KAlarm.hpp>
namespace mesosphere
{
void IAlarmable::SetAlarmTimeImpl(const KSystemClock::time_point &alarmTime)
{
this->alarmTime = alarmTime;
KCoreContext::GetCurrentInstance().GetAlarm()->AddAlarmable(*this);
}
void IAlarmable::ClearAlarm()
{
KCoreContext::GetCurrentInstance().GetAlarm()->RemoveAlarmable(*this);
alarmTime = KSystemClock::time_point{};
}
}