From bce9295acbaaa8b7c78d7eda02fc53f990c4cfc7 Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 23 Feb 2014 22:35:18 +0000 Subject: Move the declaration for mpentry() into a header file instead of pasting it into a bunch of different .c files. Remove declarations for the unused mptramp() function from everywhere except AramadaXP (and I think it's really not used there either, because the code that references it appears to be insanely does-nothing in nature). --- sys/arm/include/smp.h | 1 + sys/arm/mv/armadaxp/armadaxp_mp.c | 1 - sys/arm/samsung/exynos/exynos5_mp.c | 3 --- sys/arm/ti/omap4/omap4_mp.c | 3 --- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/arm/include/smp.h b/sys/arm/include/smp.h index 883c5b9..179882d 100644 --- a/sys/arm/include/smp.h +++ b/sys/arm/include/smp.h @@ -15,6 +15,7 @@ #define IPI_TLB 7 void init_secondary(int cpu); +void mpentry(void); void ipi_all_but_self(u_int ipi); void ipi_cpu(int cpu, u_int ipi); diff --git a/sys/arm/mv/armadaxp/armadaxp_mp.c b/sys/arm/mv/armadaxp/armadaxp_mp.c index 1af598b..004f8db 100644 --- a/sys/arm/mv/armadaxp/armadaxp_mp.c +++ b/sys/arm/mv/armadaxp/armadaxp_mp.c @@ -96,7 +96,6 @@ platform_mp_init_secondary(void) { } -void mpentry(void); void mptramp(void); diff --git a/sys/arm/samsung/exynos/exynos5_mp.c b/sys/arm/samsung/exynos/exynos5_mp.c index e99b61e..7b97a6e 100644 --- a/sys/arm/samsung/exynos/exynos5_mp.c +++ b/sys/arm/samsung/exynos/exynos5_mp.c @@ -39,9 +39,6 @@ __FBSDID("$FreeBSD$"); #define EXYNOS_SYSRAM 0x02020000 -void mpentry(void); -void mptramp(void); - void platform_mp_init_secondary(void) { diff --git a/sys/arm/ti/omap4/omap4_mp.c b/sys/arm/ti/omap4/omap4_mp.c index c42cae5..178db20 100644 --- a/sys/arm/ti/omap4/omap4_mp.c +++ b/sys/arm/ti/omap4/omap4_mp.c @@ -38,9 +38,6 @@ __FBSDID("$FreeBSD$"); #include #include -void mpentry(void); -void mptramp(void); - void platform_mp_init_secondary(void) { -- cgit v1.1