diff --git a/src/idc/zephyr_idc.c b/src/idc/zephyr_idc.c index 769e1a32d4ca..36b373e1aad8 100644 --- a/src/idc/zephyr_idc.c +++ b/src/idc/zephyr_idc.c @@ -20,6 +20,7 @@ */ #include +#include #include #include @@ -62,7 +63,7 @@ static void idc_handler(struct k_p4wq_work *work) int payload = -1; k_spinlock_key_t key; - SOC_DCACHE_INVALIDATE(msg, sizeof(*msg)); + sys_cache_data_flush_range(msg, sizeof(*msg)); if (msg->size == sizeof(int)) { const int idc_handler_memcpy_err __unused = @@ -122,13 +123,13 @@ int idc_send_msg(struct idc_msg *msg, uint32_t mode) msg->payload, msg->size); assert(!idc_send_memcpy_err); - SOC_DCACHE_FLUSH(payload->data, MIN(sizeof(payload->data), msg->size)); + sys_cache_data_flush_range(payload->data, MIN(sizeof(payload->data), msg->size)); } /* Temporarily store sender core ID */ msg_cp->core = cpu_get_id(); - SOC_DCACHE_FLUSH(msg_cp, sizeof(*msg_cp)); + sys_cache_data_flush_range(msg_cp, sizeof(*msg_cp)); k_p4wq_submit(q_zephyr_idc + target_cpu, work); switch (mode) { diff --git a/west.yml b/west.yml index 8ff334530460..beb5ac8d0882 100644 --- a/west.yml +++ b/west.yml @@ -43,7 +43,7 @@ manifest: - name: zephyr repo-path: zephyr - revision: 9028ad5d713baaf7c44c699e515e40eb6ccdf475 + revision: 3e02d48e4ead9978d10ee760c640bf55873f6e95 remote: zephyrproject # Import some projects listed in zephyr/west.yml@revision diff --git a/zephyr/lib/alloc.c b/zephyr/lib/alloc.c index 8b0dad31da38..e6435c7b0b4a 100644 --- a/zephyr/lib/alloc.c +++ b/zephyr/lib/alloc.c @@ -25,10 +25,7 @@ #include #include #include - -#if defined(CONFIG_ARCH_XTENSA) && !defined(CONFIG_KERNEL_COHERENCE) -#include -#endif +#include #if CONFIG_SYS_HEAP_RUNTIME_STATS && CONFIG_IPC_MAJOR_4 #include @@ -215,7 +212,8 @@ static void heap_free(struct k_heap *h, void *mem) if (is_cached(mem)) { mem_uncached = z_soc_uncached_ptr((__sparse_force void __sparse_cache *)mem); - z_xtensa_cache_flush_inv(mem, sys_heap_usable_size(&h->heap, mem_uncached)); + sys_cache_data_flush_and_invd_range(mem, + sys_heap_usable_size(&h->heap, mem_uncached)); mem = mem_uncached; }