[PATCH v2 0/2] lib: sbi: Improved atomic bit operations
Xiang W
wxjstz at 126.com
Wed Nov 15 06:59:20 PST 2023
The original atomic bit operation returns the word before modification,
but under RV64, int is 32 bits and cannot accommodate one machine word.
Corrected to return the value of the bit. And correct the comments of
the function.
Changed from v1:
- Split patch
- fix comments
Xiang W (2):
lib: sbi: Fix __atomic_op_bit_ord and comments
lib: sbi: Replace __atomic_op_bit_ord with __atomic intrinsics
include/sbi/riscv_atomic.h | 8 ++++----
lib/sbi/riscv_atomic.c | 40 ++++++++++++--------------------------
2 files changed, 16 insertions(+), 32 deletions(-)
--
2.42.0
More information about the opensbi
mailing list