Skip to content

Commit 232ee4c

Browse files
committed
fix interrupt masked check.
1 parent 3ae221b commit 232ee4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/base/hotpatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static inline int is_interrupt_masked()
100100
unsigned long daif;
101101
asm volatile("mrs %0, daif" : "=r"(daif));
102102
// https://developer.arm.com/documentation/ddi0601/latest/AArch64-Registers/DAIF--Interrupt-Mask-Bits
103-
return (daif & 0xC0) == 0xC0;
103+
return daif & 0xC0;
104104
}
105105

106106
int hotpatch(void *addrs[], uint32_t values[], int cnt)

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#define MAJOR 0
22
#define MINOR 12
3-
#define PATCH 8
3+
#define PATCH 9

0 commit comments

Comments
 (0)