Re: [PATCH] powerpc/32s: Use relocation offset when setting early hash table

From: Andreas Schwab
Date: Sat Nov 07 2020 - 08:24:29 EST


On Nov 07 2020, Serge Belyshev wrote:

> Christophe Leroy <christophe.leroy@xxxxxxxxxx> writes:
>
>> When calling early_hash_table(), the kernel hasn't been yet
>> relocated to its linking address, so data must be addressed
>> with relocation offset.
>>
>> Add relocation offset to write into Hash in early_hash_table().
>>
>> Reported-by: Erhard Furtner <erhard_f@xxxxxxxxxxx>
>> Reported-by: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
>> Fixes: 69a1593abdbc ("powerpc/32s: Setup the early hash table at all time.")
>> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
>
> Tested-by: Serge Belyshev <belyshev@xxxxxxxxxxxxxxxxx>

Works here as well.

Thanks, Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."