x86_64
x86_64 copied to clipboard
TryFrom implementation for ExceptionVector
There is currently no way to create an instance of idt::ExceptionVector having an interrupt number. At the same time it would be convenient for the user to use this enum to handle interrupts.
As for the implementation, I couldn't think of what type of error it should return.