os_kernel_lab/related_info/ostep/ostep11-threadintro/simple-race.s
2015-03-15 16:54:19 +08:00

7 lines
165 B
ArmAsm

.main
# this is a critical section
mov 2000(%bx), %ax # get the value at the address
add $1, %ax # increment it
mov %ax, 2000(%bx) # store it back
halt