I just wanted to implement an interrupt handler specific to divide error, but it turned out to be way more difficult than I thought!
To continue execution after the interrupt, I have to manually increment the instruction pointer manually. But to know by which amount, I need to now the size of the whole instruction. To find it I wanted to use a library called Zydis, but I could not get it to compile, because clang generates calls to memset() and memcpy(). As I can not link with the standard library, I will have to find a solution tomorrow.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.