diff options
author | jhb <jhb@FreeBSD.org> | 2015-11-11 01:32:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-11-11 01:32:35 +0000 |
commit | 9c319c0ee46b77f68febe6ec66b2e787d91e1627 (patch) | |
tree | e3ff827d472df36acb14e1d6e06240194ee25406 /include | |
parent | 5033903e2b91c8722c776318d671e7bee03179ba (diff) | |
download | FreeBSD-src-9c319c0ee46b77f68febe6ec66b2e787d91e1627.zip FreeBSD-src-9c319c0ee46b77f68febe6ec66b2e787d91e1627.tar.gz |
MFC 284324,290164:
Workaround debuggers that try to read the full 32-bit words holding
selectors in trapframes.
284324:
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.
290164:
Use movw instead of movl (or plain mov) when moving segment registers
into memory. This is a nop on clang's assembler, but some assemblers
complain if the size suffix is incorrect.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions