ARM: mmu: Separate index and address in create_sections()
Both TTB index and address used to fill that entry are derived from
the same variable 'addr' which requires shifting right and left by 20
and somewhat confusing.

Split the counter used to iterate over elements of  TTB into a
separate variable to make this code a bit easier to read.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9e31a5f commit 241dab80b8017e3cde76cdb1154820d8f0943573
@Andrey Smirnov Andrey Smirnov authored on 17 May 2018
Sascha Hauer committed on 18 May 2018
Showing 1 changed file
View
arch/arm/cpu/mmu.h