Changeset 97


Ignore:
Timestamp:
Jun 29, 2017, 1:53:30 PM (7 years ago)
Author:
max@…
Message:

(forgot this one in my previous commit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_cpu.S

    r94 r97  
    2727        lgdt    (%rdi)
    2828        /* Reload the prefetch queue */
    29     jmp 1f
    30     nop
     29        jmp     1f
     30        nop
    31311:      /* Reload stale selectors */
    3232        movl    $GDT_FIXED_SEL(GDT_KDATA_SEL, SEL_KPL),%eax
     
    5757
    5858ASM_ENTRY(rdtsc)
    59         xorq    %rax,%rax
     59        xorq    %rax,%rax
    6060        rdtsc
    6161        shlq    $32,%rdx
     
    105105
    106106ASM_ENTRY(atomic_add_32)
     107        movl    %esi,%eax
    107108        lock
    108         addl    %esi,(%rdi)
     109        xaddl   %eax,(%rdi)
     110        /* %eax now contains the old value */
    109111        ret
    110112
Note: See TracChangeset for help on using the changeset viewer.