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

Commit d6b58423 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: decompressor: avoid speculative prefetch from protected regions"

parents f44c22ba 242163cb
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2175,6 +2175,17 @@ config AUTO_ZRELADDR
config EFI_STUB
	bool

config ARM_DECOMPRESSOR_LIMIT
        hex "Limit the decompressor memory area"
        default 0x3200000
        help
          Allows overriding of the memory size that decompressor maps with
          read, write and execute permissions to avoid speculative prefetch.

          By default ARM_DECOMPRESSOR_LIMIT maps first 1GB of memory
          with read, write and execute permissions and reset of the memory
          as strongly ordered.

config EFI
	bool "UEFI runtime support"
	depends on OF && !CPU_BIG_ENDIAN && MMU && AUTO_ZRELADDR && !XIP_KERNEL
+1 −1
Original line number Diff line number Diff line
@@ -693,7 +693,7 @@ __setup_mmu: sub r3, r4, #16384 @ Page directory size
		mov	r0, r3
		mov	r9, r0, lsr #18
		mov	r9, r9, lsl #18		@ start of RAM
		add	r10, r9, #0x10000000	@ a reasonable RAM size
		add	r10, r9, #CONFIG_ARM_DECOMPRESSOR_LIMIT
		mov	r1, #0x12		@ XN|U + section mapping
		orr	r1, r1, #3 << 10	@ AP=11
		add	r2, r3, #16384