Changeset 381 for ssp_aarch64
- Timestamp:
- Apr 11, 2019, 3:20:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ssp_aarch64/trunk/arm64_gcc/arm64.h
r356 r381 72 72 aarch64_get_daif(void){ 73 73 uint32_t daif; 74 Asm ("mrs %0, daif\n\t":"=r"(daif) );74 Asm ("mrs %0, daif\n\t":"=r"(daif): : "memory"); 75 75 return daif; 76 76 } … … 79 79 aarch64_set_daif(uint32_t daif) { 80 80 81 Asm ("msr daif, %0\n\t" : : "r"(daif));81 Asm ("msr daif, %0\n\t" : : "r"(daif): "cc"); 82 82 } 83 83 … … 87 87 Inline void 88 88 aarch64_set_daif_if(void) { 89 Asm ("msr daifset, %0\n\t"::"i"(AARCH64_DAIF_IRQ | AARCH64_DAIF_FIQ) );89 Asm ("msr daifset, %0\n\t"::"i"(AARCH64_DAIF_IRQ | AARCH64_DAIF_FIQ): "cc"); 90 90 } 91 91 92 92 Inline void 93 93 aarch64_clear_daif_if(void) { 94 Asm ("msr daifclr, %0\n\t"::"i"(AARCH64_DAIF_IRQ | AARCH64_DAIF_FIQ) );94 Asm ("msr daifclr, %0\n\t"::"i"(AARCH64_DAIF_IRQ | AARCH64_DAIF_FIQ): "cc"); 95 95 } 96 96
Note:
See TracChangeset
for help on using the changeset viewer.