diff options
author | Eric Blake <eblake@redhat.com> | 2008-05-28 14:00:39 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2008-05-28 14:00:39 +0000 |
commit | 2dd1fb6ff5995c53dee2aaa51919d3338b1f05a6 (patch) | |
tree | 6eb78663b25d97e4c0d31892241e4281965017ee /newlib/libc/machine/i386 | |
parent | 676ae29038b2f0585f75a74d2ba2a1acc559aa7b (diff) | |
download | cygnal-2dd1fb6ff5995c53dee2aaa51919d3338b1f05a6.tar.gz cygnal-2dd1fb6ff5995c53dee2aaa51919d3338b1f05a6.tar.bz2 cygnal-2dd1fb6ff5995c53dee2aaa51919d3338b1f05a6.zip |
Fix bug in previous patch.
* libc/machine/i386/memset.S (memset): Mask second arg correctly.
Diffstat (limited to 'newlib/libc/machine/i386')
-rw-r--r-- | newlib/libc/machine/i386/memset.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/machine/i386/memset.S b/newlib/libc/machine/i386/memset.S index 36637fc21..6eb2cd6da 100644 --- a/newlib/libc/machine/i386/memset.S +++ b/newlib/libc/machine/i386/memset.S @@ -19,7 +19,7 @@ SYM (memset): movl esp,ebp pushl edi movl 8(ebp),edi - movl 12(ebp),eax + movzbl 12(ebp),eax movl 16(ebp),ecx cld @@ -27,7 +27,6 @@ SYM (memset): /* Less than 16 bytes won't benefit from the 'rep stosl' loop. */ cmpl $16,ecx jbe .L19 - cbw testl $7,edi je .L10 |