sh/irq: Use irq accessor functions instead of open coded access