summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/amd64
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-12-31 02:58:57 +0000
committerguenther <guenther@openbsd.org>2010-12-31 02:58:57 +0000
commitcd6b1c84c342e2600fe7a2f3cf4d252741b655fb (patch)
tree833c5bd6d43341f25359550b36e1cb111ce03410 /lib/libpthread/arch/amd64
parentfix trailing whitespace; (diff)
downloadwireguard-openbsd-cd6b1c84c342e2600fe7a2f3cf4d252741b655fb.tar.xz
wireguard-openbsd-cd6b1c84c342e2600fe7a2f3cf4d252741b655fb.zip
Make this compile with llvm-clang; problem pointed out by Amit Kulkarni
Diffstat (limited to 'lib/libpthread/arch/amd64')
-rw-r--r--lib/libpthread/arch/amd64/uthread_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/amd64/uthread_machdep.c b/lib/libpthread/arch/amd64/uthread_machdep.c
index c827a35a10c..aa38151311a 100644
--- a/lib/libpthread/arch/amd64/uthread_machdep.c
+++ b/lib/libpthread/arch/amd64/uthread_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_machdep.c,v 1.3 2004/02/25 04:10:53 deraadt Exp $ */
+/* $OpenBSD: uthread_machdep.c,v 1.4 2010/12/31 03:02:45 guenther Exp $ */
/*
* Copyright (c) 2004 Theo de Raadt
@@ -53,7 +53,7 @@ struct frame {
};
#define copyreg(reg, lval) \
- __asm__("mov %%" #reg ", %0" : "=g"(lval))
+ __asm__("movl %%" #reg ", %0" : "=g"(lval))
/*
* Given a stack and an entry function, initialise a state