os_kernel_lab/related_info/lab7/race-condition/simple-race.s

7 lines
165 B
ArmAsm
Raw Normal View History

2015-04-29 12:38:37 +08:00
.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