aboutsummaryrefslogtreecommitdiff
path: root/platform/generic/sifive
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2025-11-21 11:37:52 -0800
committerAnup Patel <anup@brainfault.org>2025-12-08 16:47:55 +0530
commit51fe6a8bc958166ff79805cf69bafe5e297776f4 (patch)
treec1b36f55193e2b8f2642484104fd1a32220659b0 /platform/generic/sifive
parent1f9677582af552bfaaf87579bb28b864d4b4130f (diff)
downloadopensbi-master.zip
opensbi-master.tar.gz
opensbi-master.tar.bz2
lib: utils: Use SBI_DOMAIN_MMIO to check MMIO device permissionsHEADmaster
Drivers or platforms may create memory regions with the MMIO flag set that contain S-mode-accessible MMIO devices. This is strictly correct and should be allowed, along with the existing default case of S-mode-accessible MMIO devices appearing in non-MMIO memory regions. When passed SBI_DOMAIN_MMIO, sbi_domain_check_addr() will perform the correct set of permission checks. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Yu-Chien Peter Lin <peter.lin@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20251121193808.1528050-3-samuel.holland@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/sifive')
0 files changed, 0 insertions, 0 deletions