Changeset 541 for soft/giet_vm/giet_libs/user_barrier.c
- Timestamp:
- Mar 30, 2015, 6:21:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/user_barrier.c
r508 r541 303 303 304 304 asm volatile( "addu $2, %1, $0 \n" 305 " sqt_llsc:\n"305 "1234: \n" 306 306 "ll $8, 0($2) \n" 307 307 "addi $9, $8, -1 \n" 308 308 "sc $9, 0($2) \n" 309 "beqz $9, sqt_llsc\n"309 "beqz $9, 1234b \n" 310 310 "addu %0, $8, $0 \n" 311 311 : "=r" (count) … … 337 337 // input: expected sense value (expected) 338 338 unsigned int* psense = (unsigned int *)&node->sense; 339 asm volatile ( " sqt_sense:\n"339 asm volatile ( "5678: \n" 340 340 "lw $3, 0(%0) \n" 341 "bne $3, %1, sqt_sense\n"341 "bne $3, %1, 5678b \n" 342 342 : 343 343 : "r"(psense), "r"(expected)
Note: See TracChangeset
for help on using the changeset viewer.