diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-07-24 14:49:45 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-07-24 14:49:45 +0000 |
commit | 8188e560762045713b702f10e379ce443acc16ff (patch) | |
tree | bf5b77a243fb6cc76994e6567dfde97b273613cb /sys/arch/amd64 | |
parent | 4b46c812f6f6a496678aba3460c72f846381d3f1 (diff) |
Fix previous commit: the RSB refill bits change %rcx so it needed to be
given an input/output ASM constraint...but I made it output-only, so the
compiler deleted the initialization.
reported by many, starting with Edd Barrett (edd(at)theunixzoo.co.uk)
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/include/cpufunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/cpufunc.h b/sys/arch/amd64/include/cpufunc.h index 9c6cc12f097..395250c3ba5 100644 --- a/sys/arch/amd64/include/cpufunc.h +++ b/sys/arch/amd64/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.28 2018/07/24 02:42:25 guenther Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.29 2018/07/24 14:49:44 guenther Exp $ */ /* $NetBSD: cpufunc.h,v 1.3 2003/05/08 10:27:43 fvdl Exp $ */ /*- @@ -305,7 +305,7 @@ mwait(u_long extensions, u_int hints) " .align 16,0xcc ;" "7: loop 3b ;" " add $(16*8),%%rsp" - : "=c" (extensions) : "a" (hints)); + : "+c" (extensions) : "a" (hints)); } static __inline void |