Merge branch 'bugfix/himem_map_range_block_v5.0' into 'release/v5.0'

himem: fixed incorrect out_ptr when range_offset is given non-zero. (v5.0)

See merge request espressif/esp-idf!23081
This commit is contained in:
morris 2023-05-15 10:43:03 +08:00
commit 04d2cc841c

View File

@ -331,7 +331,7 @@ esp_err_t esp_himem_map(esp_himem_handle_t handle, esp_himem_rangehandle_t range
}
//Set out pointer
*out_ptr = (void *)(VIRT_HIMEM_RANGE_START + (range->block_start + range_offset) * CACHE_BLOCKSIZE);
*out_ptr = (void *)(VIRT_HIMEM_RANGE_START + (range->block_start + range_block) * CACHE_BLOCKSIZE);
return ESP_OK;
}