[COMMON] soc: samsung: el3_mon: change the way to get VA of _text and _etext
authorJunho Choi <junhosj.choi@samsung.com>
Thu, 18 Jan 2018 05:06:10 +0000 (14:06 +0900)
committerJunho Choi <junhosj.choi@samsung.com>
Wed, 23 May 2018 23:53:41 +0000 (08:53 +0900)
commited5d62daaea67928a82727f5830d97000414d4f5
tree4bfbc537c8b5f6b20fe1b7c8153f0c231ff87fa5
parenta4fc9d54932115b3d73ae37058833b8eb794f5b3
[COMMON] soc: samsung: el3_mon: change the way to get VA of _text and _etext

The start and end address of kernel text section were got
from kallsyms_lockup_name which returns the address correspond
to symbol name exported by EXPORT_SYMBOL. So, the address can't
be got if the symbol is not exported.

This patch changes the way to get the start and end addresses of
kernel text section to reading them directly. It is possible
because they have been defined in linker script. The driver
can always get them even if the symbol is not exported.

Change-Id: Ibe3ef81ff5010db55af2db11f07cd1b82e1e6685
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
drivers/soc/samsung/exynos-el3_mon.c