]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
swtch.s: During context save, use the correct bit mask for clearing
authorBrian S. Dean <bsd@FreeBSD.org>
Thu, 19 Jul 2001 04:37:27 +0000 (04:37 +0000)
committerBrian S. Dean <bsd@FreeBSD.org>
Thu, 19 Jul 2001 04:37:27 +0000 (04:37 +0000)
commit3ad234d4efc659416d35b44461b74d6886cec9e2
tree68f3e83d564cef4db6f8398ca94b4e5ddfd6590d
parent2d075e994c6afda62fbc9eac5e8b1619bcd0fb40
swtch.s: During context save, use the correct bit mask for clearing
         the non-reserved bits of dr7.

         During context restore, load dr7 in such a way as to not
         disturb reserved bits.

machdep.c: Don't explicitly disallow the setting of the reserved bits
           in dr7 since we now keep from setting them when we load dr7
           from the PCB.

           This allows one to write back the dr7 value obtained from
           the system without triggering an EINVAL (one of the
           reserved bits always seems to be set after taking a trace
           trap).

MFC after: 7 days
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/machdep.c
sys/amd64/amd64/swtch.s
sys/i386/i386/machdep.c
sys/i386/i386/swtch.s