kern: fix bugs in interrupt permittance, DpcManager init

This commit is contained in:
Michael Scire 2020-07-22 18:03:12 -07:00 committed by SciresM
parent afe7e41de8
commit eecf59dd00
5 changed files with 3 additions and 14 deletions

View file

@ -233,7 +233,7 @@ namespace ams::kern {
bool SetInterruptPermitted(u32 id) {
constexpr size_t BitsPerWord = BITSIZEOF(this->irq_access_flags[0]);
if (id < BITSIZEOF(this->irq_access_flags)) {
this->irq_access_flags[id / BitsPerWord] = (1ul << (id % BitsPerWord));
this->irq_access_flags[id / BitsPerWord] |= (1ul << (id % BitsPerWord));
return true;
} else {
return false;