Central IRQ manager that maintains registered handlers and delegates
hardware operations to the architecture-specific controller.
The manager stores a mapping from IRQ numbers to handler functions.
When an interrupt fires, the architecture-specific entry point calls
dispatch which looks up and invokes the registered handler.