]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make the INTO instruction operational in 32bit mode.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 5 Apr 2018 11:03:05 +0000 (11:03 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 5 Apr 2018 11:03:05 +0000 (11:03 +0000)
commitf407f5fb880bf0ffc0edbc139e768e3f0e22ee03
tree8f00df34fe6bfc3fc95ecf327ee68d506e3b13ab
parent523bfea2a10e9d974b1e0f087732765a34c7e7b1
Make the INTO instruction operational in 32bit mode.

Having the IDT entry specify ring 0 DPL caused delivery of #GP instead
of #OF.

The instruction is not valid in 64bit mode, which probably explains
why the IDT entry for #OF was initially set this way.  It is
interesting to note that the BOUND instruction works with the IDT #BR
entry DPL 0, most likely CPU considers #BR from BOUND as generated by
a machine, not user.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/amd64/amd64/machdep.c