i386: write IO APIC irq routing entries in correct order