diff options
| author | Xiang W <[email protected]> | 2023-08-21 22:11:45 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-09-06 17:06:12 +0530 |
| commit | b20bd479eff1588bfea52cceda213c40cc273ba9 (patch) | |
| tree | 1472cc1eb79f7d1eec77575eab1ac7af40f543c1 /include | |
| parent | a9cffd65324caf5512e3ebb5b08d5b85efd0a23c (diff) | |
lib: sbi: improve the definition of SBI_IPI_EVENT_MAX
The previous definition had the assumption that the machine word length
is equal to the word length of LONG. Remove this assumption and add a
static check to prevent errors in subsequent modifications.
Signed-off-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_ipi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_ipi.h b/include/sbi/sbi_ipi.h index c64f422c..6b5e260b 100644 --- a/include/sbi/sbi_ipi.h +++ b/include/sbi/sbi_ipi.h @@ -14,7 +14,7 @@ /* clang-format off */ -#define SBI_IPI_EVENT_MAX __riscv_xlen +#define SBI_IPI_EVENT_MAX (8 * __SIZEOF_LONG__) /* clang-format on */ |
