thermosphere: handle physical IRQs

This commit is contained in:
TuxSH
2019-08-11 00:56:49 +02:00
parent 62fd2cd94d
commit c34df08ed9
10 changed files with 267 additions and 12 deletions

View File

@@ -21,7 +21,9 @@
// For both guest and host
#define MAX_NUM_REGISTERED_INTERRUPTS 512
static inline void initGicv2Pointers(ArmGicV2 *gic)
#define GIC_IRQID_MAINTENANCE 25
static inline void initGicV2Pointers(ArmGicV2 *gic)
{
gic->gicd = (volatile ArmGicV2Distributor *)0x08000000ull;
gic->gicc = (volatile ArmGicV2Controller *)0x08010000ull;

View File

@@ -21,7 +21,9 @@
// For both guest and host
#define MAX_NUM_REGISTERED_INTERRUPTS 512
static inline void initGicv2Pointers(ArmGicV2 *gic)
#define GIC_IRQID_MAINTENANCE 25
static inline void initGicV2Pointers(ArmGicV2 *gic)
{
gic->gicd = (volatile ArmGicV2Distributor *)0x50041000ull;
gic->gicc = (volatile ArmGicV2Controller *)0x50042000ull;