Commit 5fbcd625 authored by Bin Meng's avatar Bin Meng Committed by Anup Patel
Browse files

lib: sbi: Update pmp_get() to return decoded size directly



Currently pmp_get() returns the log2 length of the PMP memory
region size. The caller has to calculate the size based on that
and the same codes are duplicated.

Update this function to return decoded size directly.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
parent 327ba362
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