CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2010/08/19 13:31:53
Modified files: sys/arch/i386/include: cpufunc.h sys/arch/amd64/include: cpufunc.h Log message: Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer from getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@