added #ifdef i386 guard around the HW IRQ register syscall, as it is not defined for ppc and sparc