arch/x86: prepare for having an idt in other stages

Currently the idt setup and handling is only in ramstage. In
order to prepare having an exception handler in other stages
move the interrupt vector entry code to its own compilation
unit. vec0 and int_hand need to be global so c_start.S
references will resolve at link time.


Change-Id: I435b96d987d69fb41ea27a73e2dd634b5d6ee3d9
Signed-off-by: Aaron Durbin <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Furquan Shaikh <>
3 files changed