platform: restored use of magic_enum

This commit is contained in:
psucien 2024-05-22 20:20:13 +02:00
parent d752aa5357
commit 66b695f5c7

View file

@ -26,7 +26,6 @@ enum class InterruptId : u32 {
Compute6RelMem = 6u,
GfxEop = 7u,
GfxFlip = 8u,
MaxValue
};
using IrqHandler = std::function<void(InterruptId)>;
@ -81,7 +80,7 @@ private:
std::queue<IrqHandler> one_time_subscribers{};
std::mutex m_lock{};
};
std::array<IrqContext, (int)InterruptId::MaxValue> irq_contexts{};
std::array<IrqContext, magic_enum::enum_count<InterruptId>()> irq_contexts{};
};
using IrqC = Common::Singleton<IrqController>;