summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
Diffstat (limited to 'chip')
-rw-r--r--chip/mec1322/watchdog.c2
-rw-r--r--chip/npcx/watchdog.c2
-rw-r--r--chip/stm32/gpio.c2
-rw-r--r--chip/stm32/hwtimer.c2
-rw-r--r--chip/stm32/hwtimer32.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/chip/mec1322/watchdog.c b/chip/mec1322/watchdog.c
index 3d6c4fc89c..c547b79911 100644
--- a/chip/mec1322/watchdog.c
+++ b/chip/mec1322/watchdog.c
@@ -73,7 +73,7 @@ int watchdog_init(void)
}
#ifdef CONFIG_WATCHDOG_HELP
-void watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
+void __keep watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
{
/* Clear status */
MEC1322_TMR16_STS(0) |= 1;
diff --git a/chip/npcx/watchdog.c b/chip/npcx/watchdog.c
index f72be3cb7b..036a768bb6 100644
--- a/chip/npcx/watchdog.c
+++ b/chip/npcx/watchdog.c
@@ -45,7 +45,7 @@ void watchdog_init_warning_timer(void)
task_enable_irq(ITIM16_INT(ITIM_WDG_NO));
}
-void watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
+void __keep watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
{
int wd_cnt;
/* Clear timeout status for event */
diff --git a/chip/stm32/gpio.c b/chip/stm32/gpio.c
index d58ce29328..683303688f 100644
--- a/chip/stm32/gpio.c
+++ b/chip/stm32/gpio.c
@@ -115,7 +115,7 @@ int gpio_enable_interrupt(enum gpio_signal signal)
/*****************************************************************************/
/* Interrupt handler */
-void gpio_interrupt(void)
+void __keep gpio_interrupt(void)
{
int bit;
/* process only GPIO EXTINTs (EXTINT0..15) not other EXTINTs */
diff --git a/chip/stm32/hwtimer.c b/chip/stm32/hwtimer.c
index a1053e28c8..2658cf5734 100644
--- a/chip/stm32/hwtimer.c
+++ b/chip/stm32/hwtimer.c
@@ -372,7 +372,7 @@ int __hw_clock_source_init(uint32_t start_t)
#ifdef CONFIG_WATCHDOG_HELP
-void watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
+void __keep watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
{
struct timer_ctlr *timer = (struct timer_ctlr *)TIM_WD_BASE;
diff --git a/chip/stm32/hwtimer32.c b/chip/stm32/hwtimer32.c
index e04f540d04..ef6e9321c4 100644
--- a/chip/stm32/hwtimer32.c
+++ b/chip/stm32/hwtimer32.c
@@ -189,7 +189,7 @@ int __hw_clock_source_init(uint32_t start_t)
#define IRQ_WD IRQ_TIM(TIM_WATCHDOG)
-void watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
+void __keep watchdog_check(uint32_t excep_lr, uint32_t excep_sp)
{
/* clear status */
STM32_TIM_SR(TIM_WATCHDOG) = 0;