HomeFreeBSD

The iret instruction may generate #np and #ss fault, besides #gp.

Description

The iret instruction may generate #np and #ss fault, besides #gp.
When returning to usermode, the handler for that exceptions is also
executed with wrong gs base. Handle all three possible faults in the
same way, checking for iret fault, and performing full iret.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
kibAuthored on
Parents
rS275832: Make NanoBSD source-able from other scripts.
Branches
Unknown
Tags
Unknown

Event Timeline