Skip to contentSkip to conversation

powerpc: Rework interrupt_init_cpu()

PATCH New Tom Rini 3 participants 6 messages Aug 14, 2017 – Aug 26, 2017 PowerPC

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/2 powerpc: Rework interrupt_init_cpu()

The function interrupt_init_cpu() is given an int return type but does not return anything but 0. Rework this to be a void function.

---
 arch/powerpc/cpu/mpc83xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc85xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc86xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc8xx/interrupts.c  | 4 +---
 arch/powerpc/include/asm/ppc.h        | 2 +-
 arch/powerpc/lib/interrupts.c         | 7 +------
 6 files changed, 6 insertions(+), 19 deletions(-)
arch/powerpc/cpu/mpc83xx/interrupts.c +1 -3
index 668aa020889e..50503b4d2c0f 100644
@@ -20,7 +20,7 @@ struct irq_action {
 	ulong count;
 };
 
-int interrupt_init_cpu (unsigned *decrementer_count)
+void interrupt_init_cpu (unsigned *decrementer_count)
 {
 	volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
@@ -29,8 +29,6 @@ int interrupt_init_cpu (unsigned *decrementer_count)
 	/* Enable e300 time base */
 
 	immr->sysconf.spcr |= 0x00400000;
-
-	return 0;
 }
 
 
arch/powerpc/cpu/mpc85xx/interrupts.c +1 -3
index cf730c5c53cb..b92549000fbc 100644
@@ -20,7 +20,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
 	ccsr_pic_t __iomem *pic = (void *)CONFIG_SYS_MPC8xxx_PIC_ADDR;
 
@@ -77,8 +77,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
 	post_word_store(post_word);
 #endif
-
-	return (0);
 }
 
 /* Install and free a interrupt handler. Not implemented yet. */
arch/powerpc/cpu/mpc86xx/interrupts.c +1 -3
index a6db0baab33f..81874790ff35 100644
@@ -23,7 +23,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
 	volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 	volatile ccsr_pic_t *pic = &immr->im_pic;
@@ -73,8 +73,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
 	post_word_store(post_word);
 #endif
-
-	return 0;
 }
 
 /*
arch/powerpc/cpu/mpc8xx/interrupts.c +1 -3
index e8e287a13fa8..846148ab9867 100644
@@ -30,7 +30,7 @@ static void cpm_interrupt(void *regs);
 
 /************************************************************************/
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
 	immap_t __iomem *immr = (immap_t __iomem *)CONFIG_SYS_IMMR;
 
@@ -41,8 +41,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 
 	/* Configure CPM interrupts */
 	cpm_interrupt_init();
-
-	return 0;
 }
 
 /************************************************************************/
arch/powerpc/include/asm/ppc.h +1 -1
index 850fe93f9798..5e0aa08be936 100644
@@ -122,7 +122,7 @@ static inline void set_msr(unsigned long msr)
 void print_reginfo(void);
 #endif
 
-int interrupt_init_cpu(unsigned *);
+void interrupt_init_cpu(unsigned *);
 void timer_interrupt_cpu(struct pt_regs *);
 unsigned long search_exception_table(unsigned long addr);
 
arch/powerpc/lib/interrupts.c +1 -6
index 46fa18c63fb0..e8784aa16e9c 100644
@@ -63,13 +63,8 @@ int disable_interrupts (void)
 
 int interrupt_init (void)
 {
-	int ret;
-
 	/* call cpu specific function from $(CPU)/interrupts.c */
-	ret = interrupt_init_cpu (&decrementer_count);
-
-	if (ret)
-		return ret;
+	interrupt_init_cpu (&decrementer_count);
 
 	set_dec (decrementer_count);
 
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/2 powerpc: Rework interrupt_init_cpu()

Quoted 5 lines · Tom Rini

The function interrupt_init_cpu() is given an int return type but does not return anything but 0. Rework this to be a void function.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170826/fc4fa8a7/attachment.sig>
#2 lore raw

PATCH 1/2 powerpc: Rework interrupt_init_cpu()

In reply to Tom Rini
Quoted 134 lines · Tom Rini

The function interrupt_init_cpu() is given an int return type but does not return anything but 0. Rework this to be a void function.

---
 arch/powerpc/cpu/mpc83xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc85xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc86xx/interrupts.c | 4 +---
 arch/powerpc/cpu/mpc8xx/interrupts.c  | 4 +---
 arch/powerpc/include/asm/ppc.h        | 2 +-
 arch/powerpc/lib/interrupts.c         | 7 +------
 6 files changed, 6 insertions(+), 19 deletions(-)
arch/powerpc/cpu/mpc83xx/interrupts.c +1 -3
index 668aa020889e..50503b4d2c0f 100644
@@ -20,7 +20,7 @@ struct irq_action {
        ulong count;
 };
 
-int interrupt_init_cpu (unsigned *decrementer_count)
+void interrupt_init_cpu (unsigned *decrementer_count)
 {
        volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
@@ -29,8 +29,6 @@ int interrupt_init_cpu (unsigned *decrementer_count)
        /* Enable e300 time base */
 
        immr->sysconf.spcr |= 0x00400000;
-
-       return 0;
 }
 
 
arch/powerpc/cpu/mpc85xx/interrupts.c +1 -3
index cf730c5c53cb..b92549000fbc 100644
@@ -20,7 +20,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        ccsr_pic_t __iomem *pic = (void *)CONFIG_SYS_MPC8xxx_PIC_ADDR;
 
@@ -77,8 +77,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
        post_word_store(post_word);
 #endif
-
-       return (0);
 }
 
 /* Install and free a interrupt handler. Not implemented yet. */
arch/powerpc/cpu/mpc86xx/interrupts.c +1 -3
index a6db0baab33f..81874790ff35 100644
@@ -23,7 +23,7 @@
 #include <post.h>
 #endif
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_pic_t *pic = &immr->im_pic;
@@ -73,8 +73,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 #ifdef CONFIG_POST
        post_word_store(post_word);
 #endif
-
-       return 0;
 }
 
 /*
arch/powerpc/cpu/mpc8xx/interrupts.c +1 -3
index e8e287a13fa8..846148ab9867 100644
@@ -30,7 +30,7 @@ static void cpm_interrupt(void *regs);
 
 /************************************************************************/
 
-int interrupt_init_cpu(unsigned *decrementer_count)
+void interrupt_init_cpu(unsigned *decrementer_count)
 {
        immap_t __iomem *immr = (immap_t __iomem *)CONFIG_SYS_IMMR;
 
@@ -41,8 +41,6 @@ int interrupt_init_cpu(unsigned *decrementer_count)
 
        /* Configure CPM interrupts */
        cpm_interrupt_init();
-
-       return 0;
 }
 
 /************************************************************************/
arch/powerpc/include/asm/ppc.h +1 -1
index 850fe93f9798..5e0aa08be936 100644
@@ -122,7 +122,7 @@ static inline void set_msr(unsigned long msr)
 void print_reginfo(void);
 #endif
 
-int interrupt_init_cpu(unsigned *);
+void interrupt_init_cpu(unsigned *);
 void timer_interrupt_cpu(struct pt_regs *);
 unsigned long search_exception_table(unsigned long addr);
 
arch/powerpc/lib/interrupts.c +1 -7
index 46fa18c63fb0..e8784aa16e9c 100644
@@ -63,13 +63,8 @@ int disable_interrupts (void)
 
 int interrupt_init (void)
 {
-       int ret;
-
        /* call cpu specific function from $(CPU)/interrupts.c */
-       ret = interrupt_init_cpu (&decrementer_count);
-
-       if (ret)
-               return ret;
+       interrupt_init_cpu (&decrementer_count);
 
        set_dec (decrementer_count);
 
--
Quoted 2 lines

1.9.1

author
#3 lore raw

PATCH 2/2 powerpc: Rework cpu_init_f() to take no arguments

In reply to Tom Rini

The function cpu_init_f() is called slightly differently on different PowerPC platforms. In some cases the function needs to make use of the IMMR and in other cases it does not. Rather than pass the IMMR location as the function argument and then ignore it on some platforms, allow the function to use the location as needed as it is a constant.

Cc Mario Six <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Christophe Leroy <[email protected]>
---
 arch/powerpc/cpu/mpc83xx/cpu_init.c    | 4 +++-
 arch/powerpc/cpu/mpc83xx/spl_minimal.c | 4 +++-
 arch/powerpc/cpu/mpc83xx/start.S       | 2 --
 arch/powerpc/cpu/mpc85xx/cpu_init.c    | 4 +---
 arch/powerpc/cpu/mpc8xx/cpu_init.c     | 4 +++-
 arch/powerpc/cpu/mpc8xx/start.S        | 1 -
 arch/powerpc/include/asm/ppc.h         | 1 +
 7 files changed, 11 insertions(+), 9 deletions(-)
arch/powerpc/cpu/mpc83xx/cpu_init.c +3 -1
index 2a9db0c51b89..f09a96b9abff 100644
@@ -46,8 +46,10 @@ static void config_qe_ioports(void)
  * initialize a bunch of registers,
  * initialize the UPM's
  */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
 {
+	volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
 	__be32 acr_mask =
 #ifdef CONFIG_SYS_ACR_PIPE_DEP /* Arbiter pipeline depth */
 		ACR_PIPE_DEP |
arch/powerpc/cpu/mpc83xx/spl_minimal.c +3 -1
index 1c65e4cb78dd..ce751d3bdf9f 100644
@@ -16,8 +16,10 @@ DECLARE_GLOBAL_DATA_PTR;
  * initialize a bunch of registers,
  * initialize the UPM's
  */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
 {
+	volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
 	/* Pointer is writable since we allocated a register for it */
 	gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
arch/powerpc/cpu/mpc83xx/start.S +0 -2
index d2fced8aba86..8d10c50f6912 100644
@@ -290,8 +290,6 @@ in_flash:
 
 	GET_GOT			/* initialize GOT access	*/
 
-	/* r3: IMMR */
-	lis	r3, CONFIG_SYS_IMMR at h
 	/* run low-level CPU init code (in Flash)*/
 	bl	cpu_init_f
 
arch/powerpc/cpu/mpc85xx/cpu_init.c +1 -3
index a3076d8d7100..2db8f1f91fe2 100644
@@ -435,7 +435,7 @@ void fsl_erratum_a007212_workaround(void)
 }
 #endif
 
-ulong cpu_init_f(void)
+void cpu_init_f(void)
 {
 	extern void m8560_cpm_reset (void);
 #ifdef CONFIG_SYS_DCSRBAR_PHYS
@@ -507,8 +507,6 @@ ulong cpu_init_f(void)
 #ifdef CONFIG_SYS_FSL_ERRATUM_A007212
 	fsl_erratum_a007212_workaround();
 #endif
-
-	return 0;
 }
 
 /* Implement a dummy function for those platforms w/o SERDES */
arch/powerpc/cpu/mpc8xx/cpu_init.c +3 -1
index dc601a12976f..c1cd2fac36f4 100644
@@ -19,8 +19,10 @@
  * initialize a bunch of registers,
  * initialize the UPM's
  */
-void cpu_init_f(immap_t __iomem *immr)
+void cpu_init_f(void)
 {
+	volatile immap_t *immr = (void *)(CONFIG_SYS_IMMR);
+
 	memctl8xx_t __iomem *memctl = &immr->im_memctl;
 	ulong reg;
 
arch/powerpc/cpu/mpc8xx/start.S +0 -1
index 202ea81ae498..f03bfe94f25b 100644
@@ -158,7 +158,6 @@ in_flash:
 
 	GET_GOT			/* initialize GOT access			*/
 
-	/* r3: IMMR */
 	bl	cpu_init_f	/* run low-level CPU init code     (from Flash)	*/
 
 	bl	board_init_f	/* run 1st part of board init code (from Flash) */
arch/powerpc/include/asm/ppc.h +1 -0
index 5e0aa08be936..615d7fda9324 100644
@@ -122,6 +122,7 @@ static inline void set_msr(unsigned long msr)
 void print_reginfo(void);
 #endif
 
+void cpu_init_f(void);
 void interrupt_init_cpu(unsigned *);
 void timer_interrupt_cpu(struct pt_regs *);
 unsigned long search_exception_table(unsigned long addr);
Signature · 1 line
1.9.1
#4 lore raw

PATCH 2/2 powerpc: Rework cpu_init_f() to take no arguments

Quoted 128 lines · Tom Rini

The function cpu_init_f() is called slightly differently on different PowerPC platforms. In some cases the function needs to make use of the IMMR and in other cases it does not. Rather than pass the IMMR location as the function argument and then ignore it on some platforms, allow the function to use the location as needed as it is a constant.

Cc Mario Six <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Christophe Leroy <[email protected]>
---
  arch/powerpc/cpu/mpc83xx/cpu_init.c    | 4 +++-
  arch/powerpc/cpu/mpc83xx/spl_minimal.c | 4 +++-
  arch/powerpc/cpu/mpc83xx/start.S       | 2 --
  arch/powerpc/cpu/mpc85xx/cpu_init.c    | 4 +---
  arch/powerpc/cpu/mpc8xx/cpu_init.c     | 4 +++-
  arch/powerpc/cpu/mpc8xx/start.S        | 1 -
  arch/powerpc/include/asm/ppc.h         | 1 +
  7 files changed, 11 insertions(+), 9 deletions(-)
arch/powerpc/cpu/mpc83xx/cpu_init.c +3 -1
index 2a9db0c51b89..f09a96b9abff 100644
@@ -46,8 +46,10 @@ static void config_qe_ioports(void)
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
  {
+	volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
  	__be32 acr_mask =
  #ifdef CONFIG_SYS_ACR_PIPE_DEP /* Arbiter pipeline depth */
  		ACR_PIPE_DEP |
arch/powerpc/cpu/mpc83xx/spl_minimal.c +3 -1
index 1c65e4cb78dd..ce751d3bdf9f 100644
@@ -16,8 +16,10 @@ DECLARE_GLOBAL_DATA_PTR;
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
  {
+	volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
  	/* Pointer is writable since we allocated a register for it */
  	gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
arch/powerpc/cpu/mpc83xx/start.S +0 -2
index d2fced8aba86..8d10c50f6912 100644
@@ -290,8 +290,6 @@ in_flash:
 
  	GET_GOT			/* initialize GOT access	*/
 
-	/* r3: IMMR */
-	lis	r3, CONFIG_SYS_IMMR at h
  	/* run low-level CPU init code (in Flash)*/
  	bl	cpu_init_f
 
arch/powerpc/cpu/mpc85xx/cpu_init.c +1 -3
index a3076d8d7100..2db8f1f91fe2 100644
@@ -435,7 +435,7 @@ void fsl_erratum_a007212_workaround(void)
  }
  #endif
 
-ulong cpu_init_f(void)
+void cpu_init_f(void)
  {
  	extern void m8560_cpm_reset (void);
  #ifdef CONFIG_SYS_DCSRBAR_PHYS
@@ -507,8 +507,6 @@ ulong cpu_init_f(void)
  #ifdef CONFIG_SYS_FSL_ERRATUM_A007212
  	fsl_erratum_a007212_workaround();
  #endif
-
-	return 0;
  }
 
  /* Implement a dummy function for those platforms w/o SERDES */
arch/powerpc/cpu/mpc8xx/cpu_init.c +3 -1
index dc601a12976f..c1cd2fac36f4 100644
@@ -19,8 +19,10 @@
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f(immap_t __iomem *immr)
+void cpu_init_f(void)
  {
+	volatile immap_t *immr = (void *)(CONFIG_SYS_IMMR);
+
  	memctl8xx_t __iomem *memctl = &immr->im_memctl;
  	ulong reg;
 
arch/powerpc/cpu/mpc8xx/start.S +0 -1
index 202ea81ae498..f03bfe94f25b 100644
@@ -158,7 +158,6 @@ in_flash:
 
  	GET_GOT			/* initialize GOT access			*/
 
-	/* r3: IMMR */
  	bl	cpu_init_f	/* run low-level CPU init code     (from Flash)	*/
 
  	bl	board_init_f	/* run 1st part of board init code (from Flash) */
arch/powerpc/include/asm/ppc.h +1 -0
index 5e0aa08be936..615d7fda9324 100644
@@ -122,6 +122,7 @@ static inline void set_msr(unsigned long msr)
  void print_reginfo(void);
  #endif
 
+void cpu_init_f(void);
  void interrupt_init_cpu(unsigned *);
  void timer_interrupt_cpu(struct pt_regs *);
  unsigned long search_exception_table(unsigned long addr);
#5 lore raw

PATCH 2/2 powerpc: Rework cpu_init_f() to take no arguments

Quoted 126 lines · Christophe LEROY
Quoted 121 lines · Tom Rini

The function cpu_init_f() is called slightly differently on different PowerPC platforms. In some cases the function needs to make use of the IMMR and in other cases it does not. Rather than pass the IMMR location as the function argument and then ignore it on some platforms, allow the function to use the location as needed as it is a constant.

Cc Mario Six <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Christophe Leroy <[email protected]>
---
  arch/powerpc/cpu/mpc83xx/cpu_init.c    | 4 +++-
  arch/powerpc/cpu/mpc83xx/spl_minimal.c | 4 +++-
  arch/powerpc/cpu/mpc83xx/start.S       | 2 --
  arch/powerpc/cpu/mpc85xx/cpu_init.c    | 4 +---
  arch/powerpc/cpu/mpc8xx/cpu_init.c     | 4 +++-
  arch/powerpc/cpu/mpc8xx/start.S        | 1 -
  arch/powerpc/include/asm/ppc.h         | 1 +
  7 files changed, 11 insertions(+), 9 deletions(-)
arch/powerpc/cpu/mpc83xx/cpu_init.c +3 -1
index 2a9db0c51b89..f09a96b9abff 100644
@@ -46,8 +46,10 @@ static void config_qe_ioports(void)
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
  {
+       volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
        __be32 acr_mask =
  #ifdef CONFIG_SYS_ACR_PIPE_DEP /* Arbiter pipeline depth */
                ACR_PIPE_DEP |
arch/powerpc/cpu/mpc83xx/spl_minimal.c +3 -1
index 1c65e4cb78dd..ce751d3bdf9f 100644
@@ -16,8 +16,10 @@ DECLARE_GLOBAL_DATA_PTR;
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f (volatile immap_t * im)
+void cpu_init_f (void)
  {
+       volatile immap_t *im = (void *)(CONFIG_SYS_IMMR);
+
        /* Pointer is writable since we allocated a register for it */
        gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR +
 CONFIG_SYS_GBL_DATA_OFFSET);

diff --git a/arch/powerpc/cpu/mpc83xx/start.S
b/arch/powerpc/cpu/mpc83xx/start.S
index d2fced8aba86..8d10c50f6912 100644

arch/powerpc/cpu/mpc83xx/start.S +0 -1
@@ -290,8 +290,6 @@ in_flash:
        GET_GOT                 /* initialize GOT access        */
  -     /* r3: IMMR */
-       lis     r3, CONFIG_SYS_IMMR at h
        /* run low-level CPU init code (in Flash)*/
        bl      cpu_init_f
  diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c

b/arch/powerpc/cpu/mpc85xx/cpu_init.c
index a3076d8d7100..2db8f1f91fe2 100644

arch/powerpc/cpu/mpc85xx/cpu_init.c +1 -2
@@ -435,7 +435,7 @@ void fsl_erratum_a007212_workaround(void)
  }
  #endif
  -ulong cpu_init_f(void)
+void cpu_init_f(void)
  {
        extern void m8560_cpm_reset (void);
  #ifdef CONFIG_SYS_DCSRBAR_PHYS
@@ -507,8 +507,6 @@ ulong cpu_init_f(void)
  #ifdef CONFIG_SYS_FSL_ERRATUM_A007212
        fsl_erratum_a007212_workaround();
  #endif
-
-       return 0;
  }
    /* Implement a dummy function for those platforms w/o SERDES */
arch/powerpc/cpu/mpc8xx/cpu_init.c +3 -1
index dc601a12976f..c1cd2fac36f4 100644
@@ -19,8 +19,10 @@
   * initialize a bunch of registers,
   * initialize the UPM's
   */
-void cpu_init_f(immap_t __iomem *immr)
+void cpu_init_f(void)
  {
+       volatile immap_t *immr = (void *)(CONFIG_SYS_IMMR);
+
        memctl8xx_t __iomem *memctl = &immr->im_memctl;
        ulong reg;
  diff --git a/arch/powerpc/cpu/mpc8xx/start.S

b/arch/powerpc/cpu/mpc8xx/start.S
index 202ea81ae498..f03bfe94f25b 100644

arch/powerpc/cpu/mpc8xx/start.S +0 -0
@@ -158,7 +158,6 @@ in_flash:
        GET_GOT                 /* initialize GOT access
 */
  -     /* r3: IMMR */
        bl      cpu_init_f      /* run low-level CPU init code     (from

Flash) */
bl board_init_f /* run 1st part of board init code (from
Flash) */

arch/powerpc/include/asm/ppc.h +0 -0
index 5e0aa08be936..615d7fda9324 100644
Quoted 9 lines

arch/powerpc/include/asm/ppc.h static inline void set_msr(unsigned long msr) · line 127

Quoted 8 lines
arch/powerpc/include/asm/ppc.h +0 -0
@@ -122,6 +122,7 @@ static inline void set_msr(unsigned long msr)
  void print_reginfo(void);
  #endif
  +void cpu_init_f(void);
  void interrupt_init_cpu(unsigned *);
  void timer_interrupt_cpu(struct pt_regs *);
  unsigned long search_exception_table(unsigned long addr);