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

From: Serge Belyshev
Date: Sat Nov 07 2020 - 04:53:12 EST


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>