summaryrefslogtreecommitdiff
path: root/games/hack/hack.vault.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-08-19 19:31:54 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-08-19 19:31:54 +0000
commitb0821890140f70e9e8358a5d7d1764f182999781 (patch)
tree269754d725155853cce4958e189eb7ddcc5c4547 /games/hack/hack.vault.c
parent42e8573202cb07e421faa5868d0b14d286d51eda (diff)
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@
Diffstat (limited to 'games/hack/hack.vault.c')
0 files changed, 0 insertions, 0 deletions