Changeset da349da0 in mainline for kernel/arch/amd64/src/asm_utils.S


Ignore:
Timestamp:
2008-08-10T15:28:42Z (16 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/amd64/src/asm_utils.S

    rd2e9c47 rda349da0  
    9999 * @param MEMCPY_SIZE   Number of bytes to copy.
    100100 *
    101  * @retrun MEMCPY_SRC on success, 0 on failure.
     101 * @retrun MEMCPY_DST on success, 0 on failure.
    102102 */
    103103memcpy:
    104104memcpy_from_uspace:
    105105memcpy_to_uspace:
    106         movq MEMCPY_SRC, %rax
     106        movq MEMCPY_DST, %rax
    107107
    108108        movq MEMCPY_SIZE, %rcx
Note: See TracChangeset for help on using the changeset viewer.