mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
powerpc: Define swapper_pg_dir[] in C
Don't duplicate swapper_pg_dir[] in each platform's head.S Define it in mm/pgtable.c Define MAX_PTRS_PER_PGD because on book3s/64 PTRS_PER_PGD is not a constant. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/5e3f1b8a4695c33ccc80aa3870e016bef32b85e1.1623063174.git.christophe.leroy@csgroup.eu
This commit is contained in:
parent
45b30fafe5
commit
e72421a085
10 changed files with 10 additions and 81 deletions
|
@ -41,6 +41,10 @@ struct mm_struct;
|
|||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#ifndef MAX_PTRS_PER_PGD
|
||||
#define MAX_PTRS_PER_PGD PTRS_PER_PGD
|
||||
#endif
|
||||
|
||||
/* Keep these as a macros to avoid include dependency mess */
|
||||
#define pte_page(x) pfn_to_page(pte_pfn(x))
|
||||
#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue