From 484a79fcc0bb762acc1c3a502b237a68588ab4ab Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 3 Dec 2022 16:17:43 +0000 Subject: x1000: Add INIT_ATTR to various target specific functions Add INIT_ATTR to some low-hanging fruit in the X1000 code: GPIO init, GPIO initial state tables, clock init, and DMA init. Change-Id: Ia02b20945da1bbed103e2e01eaf60553eb5f72d4 --- firmware/target/mips/ingenic_x1000/system-x1000.c | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/target/mips/ingenic_x1000/system-x1000.c') diff --git a/firmware/target/mips/ingenic_x1000/system-x1000.c b/firmware/target/mips/ingenic_x1000/system-x1000.c index efcc35aa86..64890a6c3a 100644 --- a/firmware/target/mips/ingenic_x1000/system-x1000.c +++ b/firmware/target/mips/ingenic_x1000/system-x1000.c @@ -44,6 +44,7 @@ uint32_t __cpu_idle_reftick = 0; #endif /* Prepare the CPU to process interrupts, but don't enable them yet */ +static void system_init_irq(void) INIT_ATTR; static void system_init_irq(void) { /* Mask all interrupts */ -- cgit v1.2.3