unified interrupt handling

Signed-off-by: Boris Figovsky <borfig@gmail.com>
initial PIC support

Signed-off-by: Boris Figovsky <borfig@gmail.com>