summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-01 08:52:46 +0000
committerjeff <jeff@FreeBSD.org>2003-10-01 08:52:46 +0000
commit346aa00460c32f3801e19d703cfcdc12ef89c75d (patch)
tree83276da6b671e1b7233ea73f86513a498e84a97c /sys/i386
parente7ebf2c29a49deea4eaab17c9af60539b957ba24 (diff)
downloadFreeBSD-src-346aa00460c32f3801e19d703cfcdc12ef89c75d.zip
FreeBSD-src-346aa00460c32f3801e19d703cfcdc12ef89c75d.tar.gz
- Add a memory barrier before the sse2_pagezero() function returns. This
code uses write combining which must be committed to memory prior to other uses of this page. Spotted by: alc
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/support.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s
index b03f1dc..a55cc93 100644
--- a/sys/i386/i386/support.s
+++ b/sys/i386/i386/support.s
@@ -361,6 +361,7 @@ ENTRY(sse2_pagezero)
addl $4,%ecx
cmpl %ecx,%eax
jne 1b
+ sfence
popl %ebx
ret
OpenPOWER on IntegriCloud