Commit 31fe5a7a authored by Vasan VS's avatar Vasan VS Committed by Anup Patel
Browse files

lib: sbi: Fix PMP address bits detection

We should ensure that pmpcfg0.pmp0cfg is set to zero before using
pmpaddr0 CSR for detecting implemented PMP address bits.

Fixes: bf216328

 ("lib: sbi: Detect PMP granularity and number
of address bits")
Signed-off-by: default avatarVasan VS <vasan.vs@gmail.com>
Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarDong Du <Dd_nirvana@sjtu.edu.cn>
parent b8845e42
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment