summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2011-01-04 05:34:09 +0000
committerguenther <guenther@openbsd.org>2011-01-04 05:34:09 +0000
commitc17645d54ce94ed1aad3ec2a750f8a0874a4ef2f (patch)
tree793e9d4e0276cedca48cb688e7a31c60bef30d02 /lib/libpthread/arch
parentsome more tests regarding empty macros (diff)
downloadwireguard-openbsd-c17645d54ce94ed1aad3ec2a750f8a0874a4ef2f.tar.xz
wireguard-openbsd-c17645d54ce94ed1aad3ec2a750f8a0874a4ef2f.zip
Revert previous commit: if gcc picks a memory operand for the asm then
'movl' will result in an assembler error. Sorry llvm-clang users: fix your compiler to match gcc+as
Diffstat (limited to 'lib/libpthread/arch')
-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 aa38151311a..29a8de00718 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.4 2010/12/31 03:02:45 guenther Exp $ */
+/* $OpenBSD: uthread_machdep.c,v 1.5 2011/01/04 05:34:09 guenther Exp $ */
/*
* Copyright (c) 2004 Theo de Raadt
@@ -53,7 +53,7 @@ struct frame {
};
#define copyreg(reg, lval) \
- __asm__("movl %%" #reg ", %0" : "=g"(lval))
+ __asm__("mov %%" #reg ", %0" : "=g"(lval))
/*
* Given a stack and an entry function, initialise a state