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

Commit e1b34746 authored by Susheel Khiani's avatar Susheel Khiani
Browse files

iommu: msm: Correct address range in access_control feature



With access_control feature, we want to block
peripheral access to only kernel text region. By
aligning kernel_start and kernel_end address by
2MB we are blocking access to region outside
of kernel text region which is wrong. So fix this
and remove the alignment of addresses.

Change-Id: Idefb8f41a59a6de1fb581cbfb6b23fef375fffd4
Signed-off-by: default avatarSusheel Khiani <skhiani@codeaurora.org>
parent ad9fe5a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ void msm_access_control(void)
	unsigned long start, kernel_start, kernel_end, end;

	start = 0;
	kernel_start = ALIGN(__pa(_stext), SZ_2M);
	kernel_end = ALIGN(__pa(_etext), SZ_2M);
	kernel_start = rounddown(__pa(_stext), PAGE_SIZE);
	kernel_end = ALIGN(__pa(_etext), PAGE_SIZE);
	end = 0xFFFFFFFF;

	/*