diff options
| author | Xiang W <[email protected]> | 2022-11-24 11:16:05 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-12-04 21:52:52 +0530 |
| commit | fc82e84329760540ec62b257c700025ba37cb7ab (patch) | |
| tree | 98d2e441d207338e9e206ef101b189a179c720e3 /scripts/create-binary-archive.sh | |
| parent | 74e20293c45634048d2a3ab045e8531bca904818 (diff) | |
lib: sbi: Fix is_region_valid()
When order is equal to __riscv_xlen, the shift operation will not perform
any operation, which will cause reg->base & (BIT(reg->order) - 1) to always
be 0, and the condition has not been established.
This patch fixes this bug.
Signed-off-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts/create-binary-archive.sh')
0 files changed, 0 insertions, 0 deletions
