MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / IsEnable

Method IsEnable

src/arch/aarch64/gic/gic.cpp:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83auto Gic::Gicd::IsEnable(uint32_t intid) const -> bool {
84 auto is = Read(Isenablern(intid / kIsEnablernSize));
85 return is & (1 << (intid % kIsEnablernSize));
86}
87
88auto Gic::Gicd::SetPrio(uint32_t intid, uint32_t prio) const -> void {
89 auto shift = (intid % kIpriorityrnSize) * kIpriorityrnBits;

Callers

nothing calls this directly

Calls 1

ReadFunction · 0.85

Tested by

no test coverage detected