Changeset 6de65f3 in mainline
- Timestamp:
- 2019-04-19T11:50:54Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5773e82
- Parents:
- 739bc43
- git-author:
- Petr Pavlu <setup@…> (2019-04-19 11:26:51)
- git-committer:
- Petr Pavlu <setup@…> (2019-04-19 11:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm64/src/interrupt.c
r739bc43 r6de65f3 53 53 DAIF_write(daif | DAIF_IRQ_FLAG); 54 54 55 return (daif >> DAIF_IRQ_SHIFT) & 1;55 return daif & DAIF_IRQ_FLAG; 56 56 } 57 57 … … 66 66 DAIF_write(daif & ~DAIF_IRQ_FLAG); 67 67 68 return (daif >> DAIF_IRQ_SHIFT) & 1;68 return daif & DAIF_IRQ_FLAG; 69 69 } 70 70 … … 77 77 uint64_t daif = DAIF_read(); 78 78 79 DAIF_write((daif & ~DAIF_IRQ_FLAG) | 80 ((ipl & 1) << DAIF_IRQ_SHIFT)); 79 DAIF_write((daif & ~DAIF_IRQ_FLAG) | (ipl & DAIF_IRQ_FLAG)); 81 80 } 82 81 … … 87 86 ipl_t interrupts_read(void) 88 87 { 89 return (DAIF_read() >> DAIF_IRQ_SHIFT) & 1;88 return DAIF_read() & DAIF_IRQ_FLAG; 90 89 } 91 90
Note:
See TracChangeset
for help on using the changeset viewer.