summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/sbrk.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/sys/sbrk.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/sys/sbrk.S')
-rw-r--r--lib/libc/i386/sys/sbrk.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/i386/sys/sbrk.S b/lib/libc/i386/sys/sbrk.S
index 8d4ca87..066535e 100644
--- a/lib/libc/i386/sys/sbrk.S
+++ b/lib/libc/i386/sys/sbrk.S
@@ -60,7 +60,7 @@ ENTRY(sbrk)
testl %ecx,%ecx
jz back
addl %eax,4(%esp)
- lea SYS_break,%eax
+ mov $SYS_break,%eax
KERNCALL
jb err
PIC_PROLOGUE
@@ -81,7 +81,7 @@ err:
testl %ecx,%ecx
jz back
addl %eax,4(%esp)
- lea SYS_break,%eax
+ mov $SYS_break,%eax
KERNCALL
jb err
movl HIDENAME(curbrk),%eax
OpenPOWER on IntegriCloud