Add KInterruptEvent skeleton; remove useless funcs
This commit is contained in:
25
mesosphere/source/interrupts/KInterruptEvent.cpp
Normal file
25
mesosphere/source/interrupts/KInterruptEvent.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <mesosphere/interrupts/KInterruptEvent.hpp>
|
||||
|
||||
namespace mesosphere
|
||||
{
|
||||
|
||||
KInterruptEvent::~KInterruptEvent()
|
||||
{
|
||||
// delete receiver?
|
||||
}
|
||||
|
||||
Result KInterruptEvent::Initialize(int irqId, u32 flags)
|
||||
{
|
||||
// TODO implement
|
||||
(void)flags;
|
||||
this->irqId = irqId;
|
||||
isInitialized = true;
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
bool KInterruptEvent::IsAlive() const
|
||||
{
|
||||
return isInitialized;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
#include <mesosphere/core/make_object.hpp>
|
||||
#include <mesosphere/processes/KEvent.hpp>
|
||||
#include <mesosphere/interrupts/KInterruptEvent.hpp>
|
||||
|
||||
using namespace mesosphere;
|
||||
|
||||
int main(void) {
|
||||
auto [res, h1, h2] = MakeObjectWithHandle<KEvent>();
|
||||
(void)res; (void)h1; (void)h2;
|
||||
auto [res, h1] = MakeObjectWithHandle<KInterruptEvent>(3, -1);
|
||||
(void)res; (void)h1; //(void)h2;
|
||||
for(;;);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user