Changeset b5344a3
- Timestamp:
- Nov 12, 2020, 1:30:41 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a104311
- Parents:
- 9d264e18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/preemption.cfa
r9d264e18 rb5344a3 454 454 #else 455 455 #error this is not the right thing to do 456 // #define __cfaasm_label( label ) static struct asm_region label = \ 457 // ({ \ 458 // struct asm_region region; \ 459 // asm( \ 460 // "adrp %[vb], __cfaasm_" #label "_before" "\n\t" \ 461 // "add %[vb], %[vb], :lo12:__cfaasm_" #label "_before" "\n\t" \ 462 // "adrp %[va], :got:__cfaasm_" #label "_after" "\n\t" \ 463 // "add %[va], %[va], :lo12:__cfaasm_" #label "_after" "\n\t" \ 464 // : [vb]"=r"(region.before), [va]"=r"(region.after) \ 465 // ); \ 466 // region; \ 467 // }); 456 /* 457 #define __cfaasm_label( label ) static struct asm_region label = \ 458 ({ \ 459 struct asm_region region; \ 460 asm( \ 461 "adrp %[vb], __cfaasm_" #label "_before" "\n\t" \ 462 "add %[vb], %[vb], :lo12:__cfaasm_" #label "_before" "\n\t" \ 463 "adrp %[va], :got:__cfaasm_" #label "_after" "\n\t" \ 464 "add %[va], %[va], :lo12:__cfaasm_" #label "_after" "\n\t" \ 465 : [vb]"=r"(region.before), [va]"=r"(region.after) \ 466 ); \ 467 region; \ 468 }); 469 */ 468 470 #endif 469 471 #else
Note: See TracChangeset
for help on using the changeset viewer.