aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/amd64/sys/ptrace.S
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-11-27 20:51:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-11-27 20:51:26 +0000
commita1d8094b9e61c362e22e491f70d93107ddbc04fd (patch)
treec861b619553892862cf76f0f13e1c74fef9eebdd /lib/libc/amd64/sys/ptrace.S
parent2e6c92ffcef57c2e8016d723813e371b28897d22 (diff)
downloadsrc-a1d8094b9e61c362e22e491f70d93107ddbc04fd.tar.gz
src-a1d8094b9e61c362e22e491f70d93107ddbc04fd.zip
Use 'mov' instead of 'lea' for setting the syscall number in %eax as that
is clearer about what we are actually doing. Requested by: bde
Notes
Notes: svn path=/head/; revision=87006
Diffstat (limited to 'lib/libc/amd64/sys/ptrace.S')
-rw-r--r--lib/libc/amd64/sys/ptrace.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/amd64/sys/ptrace.S b/lib/libc/amd64/sys/ptrace.S
index 881e8a3e049a..dc786fbbd0af 100644
--- a/lib/libc/amd64/sys/ptrace.S
+++ b/lib/libc/amd64/sys/ptrace.S
@@ -51,7 +51,7 @@ ENTRY(ptrace)
#else
movl %eax,CNAME(errno)
#endif
- lea SYS_ptrace,%eax
+ mov $SYS_ptrace,%eax
KERNCALL
jb err
ret