Changeset da349da0 in mainline for kernel/arch/ia32xen/src/asm.S


Ignore:
Timestamp:
2008-08-10T15:28:42Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9d4d2c
Parents:
d2e9c47
Message:

memcpy(), memmove() and similar functions return dst instead of src.
Fix all implementations, including those in assembly. ppc32 assembly
version didn't seem to be affected by this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32xen/src/asm.S

    rd2e9c47 rda349da0  
    6868 * @param MEMCPY_SIZE(%esp)     Size.
    6969 *
    70  * @return MEMCPY_SRC(%esp) on success and 0 on failure.
     70 * @return MEMCPY_DST(%esp) on success and 0 on failure.
    7171 */
    7272memcpy:
     
    9393        movl %edx, %edi
    9494        movl %eax, %esi
    95         movl MEMCPY_SRC(%esp), %eax             /* MEMCPY_SRC(%esp), success */
     95        movl MEMCPY_DST(%esp), %eax             /* MEMCPY_DST(%esp), success */
    9696        ret
    9797       
Note: See TracChangeset for help on using the changeset viewer.