Changeset 98 for trunk/hal/x86_64/core/hal_cpu.S
- Timestamp:
- Jun 29, 2017, 2:27:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_cpu.S
r97 r98 111 111 ret 112 112 113 ASM_ENTRY(atomic_and_32) 114 movl (%rdi),%eax 115 1: 116 movl %eax,%ecx 117 andl %esi,%ecx 118 lock 119 cmpxchgl %ecx,(%rdi) 120 jnz 1b 121 /* %eax now contains the old value */ 122 ret 123 124 ASM_ENTRY(atomic_or_32) 125 movl (%rdi),%eax 126 1: 127 movl %eax,%ecx 128 orl %esi,%ecx 129 lock 130 cmpxchgl %ecx,(%rdi) 131 jnz 1b 132 /* %eax now contains the old value */ 133 ret 134
Note: See TracChangeset
for help on using the changeset viewer.