]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Define empty_zero_page[] in C
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 7 Jun 2021 10:56:04 +0000 (10:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:10 +0000 (00:09 +1000)
commitc82d075ab790ca1b380fbaf615f5cb9ff5870dd2
tree0e9c004ec205051e1ad08b924548777052f5c51a
parente2e3267d13da14a4eb90e8bd955ba4550e61c207
powerpc: Define empty_zero_page[] in C

At the time being, empty_zero_page[] is defined in each
platform head.S.

Define it in mm/mem.c instead, and put it in BSS section instead
of the DATA section. Commit 00d03ac84053 ("arm64: mm: place
empty_zero_page in bss") explains why it is interesting to have
it in BSS.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/5838caffa269e0957c5a50cc85477876220298b0.1623063174.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_40x.S
arch/powerpc/kernel/head_44x.S
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/head_8xx.S
arch/powerpc/kernel/head_book3s_32.S
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/mm/mem.c