Revert "Revert "Corrected return types of some functions""

This reverts commit fa6e729a085452f256caf438de769b4dbbe1f9ee.
IRQ is written in intel syntax