diff --git a/source/hal/driver/generic/linux/driver.c b/source/hal/driver/generic/linux/driver.c index 144162c0c..fbb199d11 100644 --- a/source/hal/driver/generic/linux/driver.c +++ b/source/hal/driver/generic/linux/driver.c @@ -126,6 +126,7 @@ static void __vsf_linux_debug_stream_at_exit(void) tcsetattr(STDIN_FILENO, TCSANOW, &__vsf_linux_original_term); } +# ifndef __CPU_WEBASSEMBLY__ static void __vsf_linux_debug_stream_rx_irqhandler(void *arg) { vsf_arch_irq_thread_t *thread = arg; @@ -164,12 +165,15 @@ static void __vsf_linux_debug_stream_rx_irqhandler(void *arg) __vsf_arch_irq_end(thread, false); } } +# endif static void __vsf_linux_debug_stream_init(void) { VSF_STREAM_CONNECT_TX(&VSF_DEBUG_STREAM_RX); +# ifndef __CPU_WEBASSEMBLY__ __vsf_arch_irq_init(&__vsf_linux_debug_stream_rx_irq, "debug_stream_rx", __vsf_linux_debug_stream_rx_irqhandler, vsf_arch_prio_0); +# endif } # elif VSF_USE_STREAM == ENABLED # endif