mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
Merge branch 'bugfix/add_unaligned_check_to_mysnc_api_v5.2' into 'release/v5.2'
cache: add unaligned check to mysnc api (v5.2) See merge request espressif/esp-idf!29817
This commit is contained in:
@@ -59,6 +59,10 @@ esp_err_t esp_cache_msync(void *addr, size_t size, int flags)
|
||||
if (flags & ESP_CACHE_MSYNC_FLAG_DIR_M2C) {
|
||||
ESP_EARLY_LOGV(TAG, "M2C DIR");
|
||||
|
||||
if (flags & ESP_CACHE_MSYNC_FLAG_UNALIGNED) {
|
||||
ESP_RETURN_ON_FALSE_ISR(false, ESP_ERR_INVALID_ARG, TAG, "M2C direction doesn't allow ESP_CACHE_MSYNC_FLAG_UNALIGNED");
|
||||
}
|
||||
|
||||
esp_os_enter_critical_safe(&s_spinlock);
|
||||
//Add preload feature / flag here, IDF-7800
|
||||
valid = cache_hal_invalidate_addr(vaddr, size);
|
||||
|
Reference in New Issue
Block a user