From 78cd86b018540d6b9a8fc1fcb31bb3dfe6a79123 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Fri, 15 Jun 2018 12:58:08 +0200 Subject: [PATCH] zephyr: Enable interrupts unconditionally Due to an issue described here: https://github.com/zephyrproject-rtos/zephyr/issues/8393 interrupts are not enabled when multithreading is disabled. Enable interrupts to allow the serial recovery mode UART to receive characters. Note: This commit must be reverted once the issue is addressed. Signed-off-by: Carles Cufi --- boot/zephyr/serial_adapter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot/zephyr/serial_adapter.c b/boot/zephyr/serial_adapter.c index e04e0b1e96..ae69876fd1 100644 --- a/boot/zephyr/serial_adapter.c +++ b/boot/zephyr/serial_adapter.c @@ -197,5 +197,10 @@ boot_uart_fifo_init(void) uart_irq_rx_enable(uart_dev); + /* Enable all interrupts unconditionally. Note that this is due + * to Zephyr issue #8393. This could should be removed once the + * issue is fixed in upstream Zephyr. */ + irq_unlock(0); + return 0; }