File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,18 @@ config ARCH_PHYS_ADDR_T_64BIT
112112config MMU
113113 def_bool y
114114
115+ config ARM64_PAGE_SHIFT
116+ int
117+ default 16 if ARM64_64K_PAGES
118+ default 14 if ARM64_16K_PAGES
119+ default 12
120+
121+ config ARM64_CONT_SHIFT
122+ int
123+ default 5 if ARM64_64K_PAGES
124+ default 7 if ARM64_16K_PAGES
125+ default 4
126+
115127config NO_IOPORT_MAP
116128 def_bool y if !PCI
117129
Original file line number Diff line number Diff line change 2323
2424/* PAGE_SHIFT determines the page size */
2525/* CONT_SHIFT determines the number of pages which can be tracked together */
26- #ifdef CONFIG_ARM64_64K_PAGES
27- #define PAGE_SHIFT 16
28- #define CONT_SHIFT 5
29- #elif defined(CONFIG_ARM64_16K_PAGES )
30- #define PAGE_SHIFT 14
31- #define CONT_SHIFT 7
32- #else
33- #define PAGE_SHIFT 12
34- #define CONT_SHIFT 4
35- #endif
26+ #define PAGE_SHIFT CONFIG_ARM64_PAGE_SHIFT
27+ #define CONT_SHIFT CONFIG_ARM64_CONT_SHIFT
3628#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
3729#define PAGE_MASK (~(PAGE_SIZE-1))
3830
You can’t perform that action at this time.
0 commit comments