Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e80329d6 in mainline for kernel/arch/amd64/src/asm.S


Ignore:
Timestamp:
2010-11-02T20:02:07Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
b5e68c8, e06ef614
Parents:
c75698b
Message:

Use shorter 32-bit instructions where possible.

File:
1 edited

Legend:

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

    rc75698b re80329d6  
    9595memcpy_from_uspace_failover_address:
    9696memcpy_to_uspace_failover_address:
    97         xorq %rax, %rax         /* return 0, failure */
     97        xorl %eax, %eax         /* return 0, failure */
    9898        ret
    9999
     
    143143
    144144set_efer_flag:
    145         movq $0xc0000080, %rcx
     145        movl $0xc0000080, %ecx
    146146        rdmsr
    147147        btsl %edi, %eax
     
    150150
    151151read_efer_flag:
    152         movq $0xc0000080, %rcx
     152        movl $0xc0000080, %ecx
    153153        rdmsr
    154154        ret
     
    243243         * Stop stack traces here if we came from userspace.
    244244         */
    245         xorq %rdx, %rdx
     245        xorl %edx, %edx
    246246        cmpq $(GDT_SELECTOR(KTEXT_DES)), ISTATE_OFFSET_CS(%rsp)
    247247        cmovnzq %rdx, %rbp
     
    425425        movq %rdi, %rsi
    426426        movq $(PA2KA(0xb8000)), %rdi  /* base of EGA text mode memory */
    427         xorq %rax, %rax
     427        xorl %eax, %eax
    428428       
    429429        /* Read bits 8 - 15 of the cursor address */
     
    505505                movq $(PA2KA(0xb80a0)), %rsi
    506506                movq $(PA2KA(0xb8000)), %rdi
    507                 movq $480, %rcx
     507                movl $480, %ecx
    508508                rep movsq
    509509               
    510510                /* Clear the 24th row */
    511                 xorq %rax, %rax
    512                 movq $20, %rcx
     511                xorl %eax, %eax
     512                movl $20, %ecx
    513513                rep stosq
    514514               
Note: See TracChangeset for help on using the changeset viewer.