Commit b8fb96ec authored by Mayuresh Chitale's avatar Mayuresh Chitale Committed by Anup Patel
Browse files

include: sbi_domain: Fix permission test macros

The macros to test permissions must perform an exact match of all the
bits in the input with the desired permission bits. Otherwise, the check
returns false positives in those cases where only some of the desired
permissions are set in the input.

Fixes: 6c202c5e

 ("include: sbi: Add Smepmp specific access flags for PMP
entries")
Signed-off-by: default avatarMayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 9560fb38
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