diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2020-11-25 08:10:50 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-03 15:01:31 +0100 |
commit | c4a22611bf6ced73d86bdfc0604d7db8982a24a4 (patch) | |
tree | 87bb78422e73f936682f384ec28a53c9aaea8f12 /arch/powerpc/include/asm/reg.h | |
parent | powerpc/32s: Don't use SPRN_SPRG_PGDIR in hash_page (diff) | |
download | linux-c4a22611bf6ced73d86bdfc0604d7db8982a24a4.tar.xz linux-c4a22611bf6ced73d86bdfc0604d7db8982a24a4.zip |
powerpc/603: Use SPRN_SDR1 to store the pgdir phys address
On the 603, SDR1 is not used.
In order to free SPRN_SPRG2, use SPRN_SDR1 to store the pgdir
phys addr.
But only some bits of SDR1 can be used (0xffff01ff).
As the pgdir is 4k aligned, rotate it by 4 bits to the left.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7370574b49d8476878ce5480726197993cb76108.1606285014.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 1fdbd7bd5f22..0978a9a0a0d1 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h @@ -1204,7 +1204,6 @@ #ifdef CONFIG_PPC_BOOK3S_32 #define SPRN_SPRG_SCRATCH0 SPRN_SPRG0 #define SPRN_SPRG_SCRATCH1 SPRN_SPRG1 -#define SPRN_SPRG_PGDIR SPRN_SPRG2 #define SPRN_SPRG_603_LRU SPRN_SPRG4 #endif |