mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-07 01:51:17 -04:00
thermosphere: continue vgic rewrite
This commit is contained in:
parent
02bbe1bb40
commit
31e5ff7c1d
4 changed files with 316 additions and 46 deletions
|
@ -67,11 +67,10 @@ namespace ams::hvisor {
|
|||
bool IrqManager::IsGuestInterrupt(u32 id)
|
||||
{
|
||||
// We don't care about the interrupts we don't use
|
||||
// Special interrupts id (eg. spurious interrupt id 1023) are also reserved to us
|
||||
// because the virtual interface hw itself will generate it for the guest.
|
||||
|
||||
bool ret = true;
|
||||
ret = ret && id != GIC_IRQID_MAINTENANCE;
|
||||
ret = ret && id != GIC_IRQID_NS_PHYS_HYP_TIMER;
|
||||
|
||||
bool ret = id <= GicV2Distributor::maxIrqId && id != GIC_IRQID_MAINTENANCE && id != GIC_IRQID_NS_PHYS_HYP_TIMER;
|
||||
ret = ret && transportInterfaceFindByIrqId(id) == NULL;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue