summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/gen/rfork_thread.S
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-27 20:51:26 +0000
committerjhb <jhb@FreeBSD.org>2001-11-27 20:51:26 +0000
commit1dc519633ce37558099ac92841eab44998d672fb (patch)
treec861b619553892862cf76f0f13e1c74fef9eebdd /lib/libc/i386/gen/rfork_thread.S
parent3971137159e0a50de14b2845f680bc76f4e95087 (diff)
downloadFreeBSD-src-1dc519633ce37558099ac92841eab44998d672fb.zip
FreeBSD-src-1dc519633ce37558099ac92841eab44998d672fb.tar.gz
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
Diffstat (limited to 'lib/libc/i386/gen/rfork_thread.S')
-rw-r--r--lib/libc/i386/gen/rfork_thread.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/i386/gen/rfork_thread.S b/lib/libc/i386/gen/rfork_thread.S
index 2d63b67c..9ce4a75 100644
--- a/lib/libc/i386/gen/rfork_thread.S
+++ b/lib/libc/i386/gen/rfork_thread.S
@@ -65,7 +65,7 @@ ENTRY(rfork_thread)
*/
pushl 8(%ebp)
pushl $0
- leal SYS_rfork, %eax
+ movl $SYS_rfork, %eax
KERNCALL
jb 2f
@@ -98,9 +98,9 @@ ENTRY(rfork_thread)
pushl %eax
pushl $0
#ifdef SYS_exit
- leal SYS_exit, %eax
+ movl $SYS_exit, %eax
#else
- leal SYS_sys_exit, %eax
+ movl $SYS_sys_exit, %eax
#endif
KERNCALL
OpenPOWER on IntegriCloud