Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3daddaa2 authored by Amit Pundir's avatar Amit Pundir
Browse files

arm: enable ARCH_MMAP_RND_BITS only for MMU platforms

parent 01b53e00
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -297,10 +297,12 @@ config MMU
	  support by paged memory management. If unsure, say 'Y'.

config ARCH_MMAP_RND_BITS_MIN
	depends on MMU
	int
	default 8

config ARCH_MMAP_RND_BITS_MAX
	depends on MMU
	int
	default 14 if MMU && PAGE_OFFSET=0x40000000
	default 15 if MMU && PAGE_OFFSET=0x80000000
@@ -308,6 +310,7 @@ config ARCH_MMAP_RND_BITS_MAX
	default 8

config ARCH_MMAP_RND_BITS
	depends on MMU
	int "Number of bits to use for ASLR of mmap base address" if EXPERT
	range ARCH_MMAP_RND_BITS_MIN ARCH_MMAP_RND_BITS_MAX
	default ARCH_MMAP_RND_BITS_MIN