mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 23:08:22 -04:00
thermosphere: fix wrong icfgr shift; fix list handling bug
This commit is contained in:
parent
03fe744bc4
commit
c42aef6ba7
3 changed files with 13 additions and 7 deletions
|
@ -104,8 +104,8 @@ static void configureInterrupt(u16 id, u8 prio, bool isLevelSensitive)
|
|||
|
||||
if (id >= 32) {
|
||||
u32 cfgr = gicd->icfgr[id / 16];
|
||||
cfgr &= ~(3 << (2 * (id % 16)));
|
||||
cfgr |= (!isLevelSensitive ? 3 : 1) << (2 * (id % 16));
|
||||
cfgr &= ~(3 << IRQ_CFGR_SHIFT(id));
|
||||
cfgr |= (!isLevelSensitive ? 3 : 1) << IRQ_CFGR_SHIFT(id);
|
||||
gicd->icfgr[id / 16] = cfgr;
|
||||
gicd->itargetsr[id] |= currentCoreCtx->gicInterfaceMask;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue