diff options
author | wdenk | 2005-04-03 17:23:39 +0000 |
---|---|---|
committer | wdenk | 2005-04-03 17:23:39 +0000 |
commit | 3ec924a3cb7bc3b37be9adec695d7c3d563b3d2c (patch) | |
tree | a1e60fe7a788cbe86f8b9cde532273ba0f3df687 /cpu | |
parent | 756f586a73d756f163dc03a049d650cc1a5b5899 (diff) |
Patch by Steven Scholz, 25 Oct 2004:
Declare reset_cpu() in include/common.h instead locally
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm1136/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm1136/interrupts.c | 1 | ||||
-rw-r--r-- | cpu/arm720t/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm720t/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/arm920t/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm920t/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/arm920t/s3c24x0/interrupts.c | 1 | ||||
-rw-r--r-- | cpu/arm925t/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm925t/interrupts.c | 1 | ||||
-rw-r--r-- | cpu/arm926ejs/cpu.c | 2 | ||||
-rw-r--r-- | cpu/arm926ejs/interrupts.c | 1 | ||||
-rw-r--r-- | cpu/at91rm9200/cpu.c | 2 | ||||
-rw-r--r-- | cpu/at91rm9200/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/i386/cpu.c | 2 | ||||
-rw-r--r-- | cpu/ixp/cpu.c | 2 | ||||
-rw-r--r-- | cpu/ixp/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/lh7a40x/cpu.c | 2 | ||||
-rw-r--r-- | cpu/lh7a40x/interrupts.c | 1 | ||||
-rw-r--r-- | cpu/pxa/cpu.c | 2 | ||||
-rw-r--r-- | cpu/pxa/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/s3c44b0/cpu.c | 2 | ||||
-rw-r--r-- | cpu/s3c44b0/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/sa1100/cpu.c | 2 | ||||
-rw-r--r-- | cpu/sa1100/interrupts.c | 2 |
24 files changed, 0 insertions, 43 deletions
diff --git a/cpu/arm1136/cpu.c b/cpu/arm1136/cpu.c index d5c5dc869aa..7fa5ddcac6c 100644 --- a/cpu/arm1136/cpu.c +++ b/cpu/arm1136/cpu.c @@ -131,8 +131,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/arm1136/interrupts.c b/cpu/arm1136/interrupts.c index e87a628c7f3..c80d9a5d0f9 100644 --- a/cpu/arm1136/interrupts.c +++ b/cpu/arm1136/interrupts.c @@ -35,7 +35,6 @@ #include <asm/arch/omap2420.h> #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); #define TIMER_LOAD_VAL 0 /* macro to read the 32 bit timer */ diff --git a/cpu/arm720t/cpu.c b/cpu/arm720t/cpu.c index ef3fbf35d18..5421aff7def 100644 --- a/cpu/arm720t/cpu.c +++ b/cpu/arm720t/cpu.c @@ -84,8 +84,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/arm720t/interrupts.c b/cpu/arm720t/interrupts.c index 842a44384bf..a7ea70a266f 100644 --- a/cpu/arm720t/interrupts.c +++ b/cpu/arm720t/interrupts.c @@ -31,8 +31,6 @@ #include <asm/proc-armv/ptrace.h> #include <asm/hardware.h> -extern void reset_cpu(ulong addr); - #ifndef CONFIG_NETARM /* we always count down the max. */ #define TIMER_LOAD_VAL 0xffff diff --git a/cpu/arm920t/cpu.c b/cpu/arm920t/cpu.c index 2a2b5780171..718f253471d 100644 --- a/cpu/arm920t/cpu.c +++ b/cpu/arm920t/cpu.c @@ -124,8 +124,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/arm920t/interrupts.c b/cpu/arm920t/interrupts.c index ea58f154d40..bfab5196402 100644 --- a/cpu/arm920t/interrupts.c +++ b/cpu/arm920t/interrupts.c @@ -34,8 +34,6 @@ #include <arm920t.h> #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); - #ifdef CONFIG_USE_IRQ /* enable IRQ interrupts */ void enable_interrupts (void) diff --git a/cpu/arm920t/s3c24x0/interrupts.c b/cpu/arm920t/s3c24x0/interrupts.c index 92298b09f02..f581d6d6079 100644 --- a/cpu/arm920t/s3c24x0/interrupts.c +++ b/cpu/arm920t/s3c24x0/interrupts.c @@ -39,7 +39,6 @@ #include <s3c2410.h> #endif -extern void reset_cpu(ulong addr); int timer_load_val = 0; /* macro to read the 16 bit timer */ diff --git a/cpu/arm925t/cpu.c b/cpu/arm925t/cpu.c index b760ec97b11..c1c6b03e424 100644 --- a/cpu/arm925t/cpu.c +++ b/cpu/arm925t/cpu.c @@ -125,8 +125,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/arm925t/interrupts.c b/cpu/arm925t/interrupts.c index d3c94768c09..ea4aa3b3b04 100644 --- a/cpu/arm925t/interrupts.c +++ b/cpu/arm925t/interrupts.c @@ -38,7 +38,6 @@ #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); #define TIMER_LOAD_VAL 0xffffffff /* macro to read the 32 bit timer */ diff --git a/cpu/arm926ejs/cpu.c b/cpu/arm926ejs/cpu.c index 6c153e522e8..2681f999c11 100644 --- a/cpu/arm926ejs/cpu.c +++ b/cpu/arm926ejs/cpu.c @@ -125,8 +125,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/arm926ejs/interrupts.c b/cpu/arm926ejs/interrupts.c index 4fdac9fc17f..062515e398f 100644 --- a/cpu/arm926ejs/interrupts.c +++ b/cpu/arm926ejs/interrupts.c @@ -40,7 +40,6 @@ #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); #define TIMER_LOAD_VAL 0xffffffff /* macro to read the 32 bit timer */ diff --git a/cpu/at91rm9200/cpu.c b/cpu/at91rm9200/cpu.c index 90a4f9cd041..9fdb70373e7 100644 --- a/cpu/at91rm9200/cpu.c +++ b/cpu/at91rm9200/cpu.c @@ -115,8 +115,6 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { #ifdef CFG_SOFT_RESET - extern void reset_cpu(ulong addr); - disable_interrupts(); reset_cpu(0); #else diff --git a/cpu/at91rm9200/interrupts.c b/cpu/at91rm9200/interrupts.c index 1c071bbf3d6..f15c5830bb6 100644 --- a/cpu/at91rm9200/interrupts.c +++ b/cpu/at91rm9200/interrupts.c @@ -35,8 +35,6 @@ #include <asm/arch/hardware.h> #include <asm/proc/ptrace.h> -extern void reset_cpu(ulong addr); - /* the number of clocks per CFG_HZ */ #define TIMER_LOAD_VAL (CFG_HZ_CLOCK/CFG_HZ) diff --git a/cpu/i386/cpu.c b/cpu/i386/cpu.c index f24e4ba525f..5fd37c72a60 100644 --- a/cpu/i386/cpu.c +++ b/cpu/i386/cpu.c @@ -50,8 +50,6 @@ int cpu_init(void) int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu(ulong addr); - printf ("resetting ...\n"); udelay(50000); /* wait 50 ms */ disable_interrupts(); diff --git a/cpu/ixp/cpu.c b/cpu/ixp/cpu.c index 00264be797b..9383473141a 100644 --- a/cpu/ixp/cpu.c +++ b/cpu/ixp/cpu.c @@ -76,8 +76,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - printf ("resetting ...\n"); udelay (50000); /* wait 50 ms */ diff --git a/cpu/ixp/interrupts.c b/cpu/ixp/interrupts.c index 962f3ffda31..e260dea0ed4 100644 --- a/cpu/ixp/interrupts.c +++ b/cpu/ixp/interrupts.c @@ -30,8 +30,6 @@ #include <common.h> #include <asm/arch/ixp425.h> -extern void reset_cpu (ulong addr); - #ifdef CONFIG_USE_IRQ /* enable IRQ/FIQ interrupts */ void enable_interrupts (void) diff --git a/cpu/lh7a40x/cpu.c b/cpu/lh7a40x/cpu.c index 2a2b5780171..718f253471d 100644 --- a/cpu/lh7a40x/cpu.c +++ b/cpu/lh7a40x/cpu.c @@ -124,8 +124,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); /*NOTREACHED*/ diff --git a/cpu/lh7a40x/interrupts.c b/cpu/lh7a40x/interrupts.c index a7162698aa3..3c2dc4fc49d 100644 --- a/cpu/lh7a40x/interrupts.c +++ b/cpu/lh7a40x/interrupts.c @@ -35,7 +35,6 @@ #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); static ulong timer_load_val = 0; /* macro to read the 16 bit timer */ diff --git a/cpu/pxa/cpu.c b/cpu/pxa/cpu.c index abb064ad013..d1551ddc386 100644 --- a/cpu/pxa/cpu.c +++ b/cpu/pxa/cpu.c @@ -74,8 +74,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - printf ("resetting ...\n"); udelay (50000); /* wait 50 ms */ diff --git a/cpu/pxa/interrupts.c b/cpu/pxa/interrupts.c index fd02154b868..b335a82a5e1 100644 --- a/cpu/pxa/interrupts.c +++ b/cpu/pxa/interrupts.c @@ -29,8 +29,6 @@ #include <common.h> #include <asm/arch/pxa-regs.h> -extern void reset_cpu (ulong addr); - #ifdef CONFIG_USE_IRQ /* enable IRQ/FIQ interrupts */ void enable_interrupts (void) diff --git a/cpu/s3c44b0/cpu.c b/cpu/s3c44b0/cpu.c index 2d5e2e87a79..5d50b3cea04 100644 --- a/cpu/s3c44b0/cpu.c +++ b/cpu/s3c44b0/cpu.c @@ -86,8 +86,6 @@ void reset_cpu (ulong addr) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - disable_interrupts (); reset_cpu (0); diff --git a/cpu/s3c44b0/interrupts.c b/cpu/s3c44b0/interrupts.c index 4328feb4e36..dea8118dd7d 100644 --- a/cpu/s3c44b0/interrupts.c +++ b/cpu/s3c44b0/interrupts.c @@ -29,8 +29,6 @@ #include <asm/proc-armv/ptrace.h> -extern void reset_cpu(ulong addr); - /* we always count down the max. */ #define TIMER_LOAD_VAL 0xffff diff --git a/cpu/sa1100/cpu.c b/cpu/sa1100/cpu.c index 34adf91ad1b..17e5b0d1956 100644 --- a/cpu/sa1100/cpu.c +++ b/cpu/sa1100/cpu.c @@ -73,8 +73,6 @@ int cleanup_before_linux (void) int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - extern void reset_cpu (ulong addr); - printf ("resetting ...\n"); udelay (50000); /* wait 50 ms */ diff --git a/cpu/sa1100/interrupts.c b/cpu/sa1100/interrupts.c index 00b6d2a0298..93a78d707eb 100644 --- a/cpu/sa1100/interrupts.c +++ b/cpu/sa1100/interrupts.c @@ -31,8 +31,6 @@ #include <asm/proc-armv/ptrace.h> -extern void reset_cpu (ulong addr); - #ifdef CONFIG_USE_IRQ /* enable IRQ/FIQ interrupts */ void enable_interrupts (void) |