OSDN Git Service

powerpc/32s: Use relocation offset when setting early hash table
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 7 Nov 2020 09:07:40 +0000 (09:07 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 8 Nov 2020 09:38:05 +0000 (20:38 +1100)
commit01776f070ffcbf336be3bf1672bd3c589548d6c4
tree709121f9639ad368eb4976e9afa2473ff38e81b6
parent3fb4a8fa28b740709bdd3229b80279957f4d37ed
powerpc/32s: Use relocation offset when setting early hash table

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().

Fixes: 69a1593abdbc ("powerpc/32s: Setup the early hash table at all time.")
Reported-by: Erhard Furtner <erhard_f@mailbox.org>
Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Tested-by: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/9e225a856a8b22e0e77587ee22ab7a2f5bca8753.1604740029.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_book3s_32.S