Add mesosphere (VERY VERY WIP)

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:00 -07:00
1 parent 50e307b4b7
commit 745fa84e5e
56 files changed
+5033

No files matched your search

@@ -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{};
}
}