Skip to content

Commit

Permalink
Merge branch 'bugfix/himem_map_range_block_v4.4' into 'release/v4.4'
Browse files Browse the repository at this point in the history
himem: fixed incorrect out_ptr when range_offset is given non-zero. (v4.4)

See merge request espressif/esp-idf!23082
  • Loading branch information
ginkgm committed Apr 7, 2023
2 parents a6c7d78 + 4dca4bd commit e383d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_hw_support/port/esp32/esp_himem.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,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 e383d14

Please sign in to comment.