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

Changeset e80329d6 in mainline for kernel/arch/amd64/src/context.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/context.S

    rc75698b re80329d6  
    4545        CONTEXT_SAVE_ARCH_CORE %rdi %rdx
    4646       
    47         xorq %rax, %rax       # context_save returns 1
    48         incq %rax
     47        xorl %eax, %eax       # context_save returns 1
     48        incl %eax
    4949        ret
    5050
     
    6060        movq %rdx, (%rsp)
    6161       
    62         xorq %rax, %rax       # context_restore returns 0
     62        xorl %eax, %eax       # context_restore returns 0
    6363        ret
Note: See TracChangeset for help on using the changeset viewer.