i386: convert hardware exception 7 to an interrupt gate