[platform][qemu-virt] make sure the PCI bus builds properly

Implement stubbed out versions of the msi allocation routines.

Add a stubbed out routine to allocate MSI vectors.
This commit is contained in:
Travis Geiselbrecht
2022-01-24 00:20:33 -08:00
parent 0679f91b9a
commit 91d5c67fc2
2 changed files with 8 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ void register_int_handler(unsigned int vector, int_handler handler, void *arg) {
spin_unlock_restore(&gicd_lock, state, GICD_LOCK_FLAGS);
}
void register_int_handler_msi(unsigned int vector, int_handler handler, void *arg, bool edge) {
PANIC_UNIMPLEMENTED;
}
#define GICREG(gic, reg) (*REG32(GICBASE(gic) + (reg)))
/* main cpu regs */