Rewrite i386 interrupt handling