From e3cadd1fae32b8cc4f0901db4a527d66c2d1aba7 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 8 Dec 2022 21:02:15 +0100 Subject: [PATCH] Cleanup Interrupt --- src/kernel/service/InterruptService.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/kernel/service/InterruptService.h b/src/kernel/service/InterruptService.h index 257d547..55b1f2d 100644 --- a/src/kernel/service/InterruptService.h +++ b/src/kernel/service/InterruptService.h @@ -5,6 +5,7 @@ #include "kernel/interrupt/IntDispatcher.h" #include "device/interrupt/PIC.h" #include "lib/stream/Logger.h" +#include "lib/util/RestrictedConstructors.h" namespace Kernel { @@ -18,9 +19,11 @@ public: static const constexpr uint8_t ID = Service::INTERRUPT; public: - InterruptService() = default; + MakeDefault(InterruptService) - // TODO: Rest of constructors + MakeUncopyable(InterruptService) + + MakeUnmovable(InterruptService) void assignInterrupt(IntDispatcher::Vector vector, ISR &isr); @@ -41,7 +44,7 @@ public: private: IntDispatcher intDispatcher; - uint32_t spuriousCounter; + uint32_t spuriousCounter = 0; static NamedLogger log; };