HomeFreeBSD

Allow exceptions to be masked when in userspace

Description

Allow exceptions to be masked when in userspace

We may want to mask exceptions when in userspace. This was previously
impossible as threads are created with all exceptions unmasked and
signals expected userspace to mask any. Fix these by copying the
mask state on thread creation and allow exceptions to be masked on
signal return, as long as they don't change.

Sponsored by: DARPA, AFRL

Details

Provenance
andrewAuthored on
Parents
rS354178: Allow the userspace ID register fields to be read from the kernel
Branches
Unknown
Tags
Unknown