MPC5200 does not boot

Michal Sojka sojkam1 at fel.cvut.cz
Tue Aug 2 15:47:39 AEST 2016


On Tue, Aug 02 2016, Benjamin Herrenschmidt wrote:
> On Tue, 2016-08-02 at 00:44 +0200, Michal Sojka wrote:
>> Hi Benjamin,
>> 
>> the following commit causes my MPC5200 not to boot.
>> 
>>     commit 9402c684613163888714df0955fa1f17142b08bf
>
> Does this fixes it for you ?

Yes, it does.

Thanks.
-Michal


> diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c
> index defb299..fd36e13 100644
> --- a/arch/powerpc/lib/feature-fixups.c
> +++ b/arch/powerpc/lib/feature-fixups.c
> @@ -154,7 +154,7 @@ static void do_final_fixups(void)
>  
>  void apply_feature_fixups(void)
>  {
> -	struct cpu_spec *spec = *PTRRELOC(&cur_cpu_spec);
> +	struct cpu_spec *spec = PTRRELOC(*PTRRELOC(&cur_cpu_spec));
>  
>  	/*
>  	 * Apply the CPU-specific and firmware specific fixups to kernel text


More information about the Linuxppc-dev mailing list