]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear DF bit in eflags/rflags on the kernel entry. The i386 and amd64
authorkib <kib@FreeBSD.org>
Wed, 23 Jun 2010 20:44:07 +0000 (20:44 +0000)
committerkib <kib@FreeBSD.org>
Wed, 23 Jun 2010 20:44:07 +0000 (20:44 +0000)
commit8dcd1daee8fe0803727673a014545c545bf684e4
tree6f2a6ce8d3aa678205f3ae8e8fe722441473ab3e
parent1cd81ae69301b363e554de070b5f1f28f5b93d17
Clear DF bit in eflags/rflags on the kernel entry. The i386 and amd64
ABI specifies the DF should be zero, and newer compilers do not clear
DF before using DF-sensitive instructions.

The DF clearing for signal handlers was done some time ago.

MFC after: 1 week
sys/amd64/amd64/exception.S
sys/amd64/ia32/ia32_exception.S
sys/amd64/include/asmacros.h
sys/i386/i386/apic_vector.s
sys/i386/i386/atpic_vector.s
sys/i386/i386/exception.s