calls out to software interrupt handler when it sees trap4.