HomeFreeBSD

Ensure that the upper 16 bits of segment registers manually saved in

Description

Ensure that the upper 16 bits of segment registers manually saved in
trapframes are cleared by explicitly pushing a zero and then moving
the segment register into the low 16 bits. Certain Intel processors
treat a push of a segment register as a move of the segment register
into the low 16 bits leaving the upper 16 bits of the word in the
stack unchanged.

Reviewed by: kib
MFC after: 1 month

Details

Provenance
jhbAuthored on
Reviewer
kib
Parents
rS284323: Add a missing word, should have been in r284290.
Branches
Unknown
Tags
Unknown