diff options
| author | Himanshu Chauhan <[email protected]> | 2023-01-09 05:20:40 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-01-09 18:04:23 +0530 |
| commit | 20646e0184e23cacfeb951060d33881453d14772 (patch) | |
| tree | 6497c7e68d75a8cca34fed72bb97200e1f964c86 | |
| parent | 44f736c96ed997df6e40d90acdd1cdd3342a8ff4 (diff) | |
lib: utils: Use SU-{R/W/X} flags for region permissions during parsing
Use the newer SU-{R/W/X} flags for checking and assigning region
permissions.
Signed-off-by: Himanshu Chauhan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Tested-by: Anup Patel <[email protected]>
| -rw-r--r-- | lib/utils/fdt/fdt_domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils/fdt/fdt_domain.c b/lib/utils/fdt/fdt_domain.c index 35462a20..45612ef6 100644 --- a/lib/utils/fdt/fdt_domain.c +++ b/lib/utils/fdt/fdt_domain.c @@ -338,9 +338,9 @@ static int __fdt_parse_domain(void *fdt, int domain_offset, void *opaque) * 2) mmio regions protecting M-mode only mmio devices */ sbi_domain_for_each_memregion(&root, reg) { - if ((reg->flags & SBI_DOMAIN_MEMREGION_READABLE) || - (reg->flags & SBI_DOMAIN_MEMREGION_WRITEABLE) || - (reg->flags & SBI_DOMAIN_MEMREGION_EXECUTABLE)) + if ((reg->flags & SBI_DOMAIN_MEMREGION_SU_READABLE) || + (reg->flags & SBI_DOMAIN_MEMREGION_SU_WRITABLE) || + (reg->flags & SBI_DOMAIN_MEMREGION_SU_EXECUTABLE)) continue; if (FDT_DOMAIN_REGION_MAX_COUNT <= val32) return SBI_EINVAL; |
