Ask Your Question

Does the processor push an error code onto the ring0 stack when #GP is elevated from v8086 mode?

asked 2021-07-02 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-03-13 13:00:00 +0000

pufferfish gravatar image

Yes, the processor does push an error code onto the ring0 stack when #GP (general protection fault) is elevated from v8086 mode. The error code is a 16-bit value that provides additional information about the cause of the fault, such as the segment selector index or the type of access that caused the fault. The error code is pushed onto the stack before the processor transfers control to the #GP exception handler in ring0 mode.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2021-07-02 11:00:00 +0000

Seen: 2 times

Last updated: Mar 13 '23