diff options
author | Alex White <alex.white@oarcorp.com> | 2021-01-11 10:23:16 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-05 08:43:15 -0600 |
commit | 9aff7e5685164f062b34d24e1002b7137d6f8496 (patch) | |
tree | 5628a80443c605111af28e7f02297182a737207b /cpukit/score/cpu/aarch64/cpu.c | |
parent | cpukit: Explicitly enforce alignment requirements (diff) | |
download | rtems-9aff7e5685164f062b34d24e1002b7137d6f8496.tar.bz2 |
score/aarch64: Fix interrupt level reads
Diffstat (limited to 'cpukit/score/cpu/aarch64/cpu.c')
-rw-r--r-- | cpukit/score/cpu/aarch64/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/aarch64/cpu.c b/cpukit/score/cpu/aarch64/cpu.c index b977875fc3..75b1125cf7 100644 --- a/cpukit/score/cpu/aarch64/cpu.c +++ b/cpukit/score/cpu/aarch64/cpu.c @@ -166,7 +166,7 @@ uint64_t _CPU_ISR_Get_level( void ) : [level] "=&r" (level) ); - return level & AARCH64_PSTATE_I; + return ( level & AARCH64_PSTATE_I ) != 0; } void _CPU_ISR_install_vector( |