diff --git a/src/schedule/zephyr_ll.c b/src/schedule/zephyr_ll.c index 95f4cd17620d..fa51959e4f14 100644 --- a/src/schedule/zephyr_ll.c +++ b/src/schedule/zephyr_ll.c @@ -79,7 +79,7 @@ static void zephyr_ll_lock(struct zephyr_ll *sch, uint32_t *flags) k_mutex_lock(sch->lock, K_FOREVER); zephyr_ll_lock_acquired(sch->core); #else - irq_local_disable(*flags); + *flags = arch_irq_lock(); #endif } @@ -89,7 +89,7 @@ static void zephyr_ll_unlock(struct zephyr_ll *sch, uint32_t *flags) zephyr_ll_lock_releasing(sch->core); k_mutex_unlock(sch->lock); #else - irq_local_enable(*flags); + arch_irq_unlock(*flags); #endif } diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index f57231c1582f..16b961fca17b 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -51,14 +51,8 @@ DECLARE_TR_CTX(zephyr_tr, SOF_UUID(zephyr_uuid), LOG_LEVEL_INFO); /* * Interrupts. - * - * Mostly mapped. Still needs some linkage symbols that can be removed later. */ -/* needed for linkage only */ -const char irq_name_level2[] = "level2"; -const char irq_name_level5[] = "level5"; - /* AMD platforms without native drivers use the legacy SOF interrupt API */ #if defined(CONFIG_AMD) && !defined(CONFIG_ZEPHYR_NATIVE_DRIVERS) int interrupt_register(uint32_t irq, void(*handler)(void *arg), void *arg) @@ -118,16 +112,6 @@ void interrupt_unmask(uint32_t irq, unsigned int cpu) } #endif -void platform_interrupt_set(uint32_t irq) -{ - /* handled by zephyr - needed for linkage */ -} - -void platform_interrupt_clear(uint32_t irq, uint32_t mask) -{ - /* handled by zephyr - needed for linkage */ -} - /* * Asynchronous Messaging Service * @@ -156,16 +140,11 @@ struct notify **arch_notify_get(void) return host_notify + cpu_get_id(); } +#if defined(CONFIG_AMD) && !defined(CONFIG_ZEPHYR_NATIVE_DRIVERS) /* - * Debug - */ -void arch_dump_regs_a(void *dump_buf) -{ - /* needed for linkage only */ -} - -/* - * Xtensa. TODO: this needs removed and fixed in SOF. + * Xtensa. Used by arch_interrupt_disable_mask() in the legacy interrupt + * code of the AMD platforms without native drivers. + * TODO: remove with the legacy interrupt code. */ unsigned int _xtos_ints_off(unsigned int mask) { @@ -173,6 +152,7 @@ unsigned int _xtos_ints_off(unsigned int mask) irq_lock(); return 0; } +#endif int task_main_start(struct sof *sof) {