Changeset 97
- Timestamp:
- Jun 29, 2017, 1:53:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_cpu.S
r94 r97 27 27 lgdt (%rdi) 28 28 /* Reload the prefetch queue */ 29 30 29 jmp 1f 30 nop 31 31 1: /* Reload stale selectors */ 32 32 movl $GDT_FIXED_SEL(GDT_KDATA_SEL, SEL_KPL),%eax … … 57 57 58 58 ASM_ENTRY(rdtsc) 59 59 xorq %rax,%rax 60 60 rdtsc 61 61 shlq $32,%rdx … … 105 105 106 106 ASM_ENTRY(atomic_add_32) 107 movl %esi,%eax 107 108 lock 108 addl %esi,(%rdi) 109 xaddl %eax,(%rdi) 110 /* %eax now contains the old value */ 109 111 ret 110 112
Note: See TracChangeset
for help on using the changeset viewer.