Skip to main content

mem_validate_range

Function mem_validate_range 

Source
pub fn mem_validate_range(
    address: usize,
    size: usize,
    memory_type: MemoryType,
) -> Result<()>
Expand description

Validates a memory range against the PSP’s memory map.

May return INVALID_MEM_ADDR (bad start address), INVALID_MEM_TYPE (type mismatch), or INVALID_MEM_RANGE (range too small for address + size).