aboutsummaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-mediatek
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2019-08-13 12:25:20 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2019-08-26 13:49:26 +0200
commite9f46c7402aaf2fc39bb7a4174ad691b38cbbe81 (patch)
treef1a90d2f5976e9bef6c94a48f89d690e14c30fad /core/arch/arm/plat-mediatek
parent612791d01ca4d6aa33a97953e7716b74d3d653e9 (diff)
core: replace thread_nintr_handler_ptr with weak function
Removes registration of platform specific secure interrupt handler in thread_nintr_handler_ptr. Instead a __weak overridable itr_core_handler() is provided. Platforms which expects to receive secure interrupts must override the default function. The default function calls panic() if called. With this also nintr is removed from struct thread_handlers and consequently all platforms are updated to stop using that field. Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/arch/arm/plat-mediatek')
-rw-r--r--core/arch/arm/plat-mediatek/main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/arch/arm/plat-mediatek/main.c b/core/arch/arm/plat-mediatek/main.c
index bb8253b4..6a38e58c 100644
--- a/core/arch/arm/plat-mediatek/main.c
+++ b/core/arch/arm/plat-mediatek/main.c
@@ -14,13 +14,10 @@
#include <tee/entry_std.h>
#include <tee/entry_fast.h>
-static void main_fiq(void);
-
register_phys_mem_pgdir(MEM_AREA_IO_NSEC,
CONSOLE_UART_BASE, SERIAL8250_UART_REG_SIZE);
static const struct thread_handlers handlers = {
- .nintr = main_fiq,
.cpu_on = cpu_on_handler,
.cpu_off = pm_do_nothing,
.cpu_suspend = pm_do_nothing,
@@ -36,11 +33,6 @@ const struct thread_handlers *generic_boot_get_handlers(void)
return &handlers;
}
-static void main_fiq(void)
-{
- panic();
-}
-
void console_init(void)
{
serial8250_uart_init(&console_data, CONSOLE_UART_BASE,