Skip to content

Commit

Permalink
Merge branch 'bugfix/himem_map_range_block' into 'master'
Browse files Browse the repository at this point in the history
himem: fixed incorrect out_ptr when range_offset is given non-zero.

Closes IDFGH-3713

See merge request espressif/esp-idf!23072
  • Loading branch information
ginkgm committed Apr 5, 2023
2 parents 9352a57 + ef4db26 commit c2887c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_psram/esp32/esp_himem.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c2887c2

Please sign in to comment.