arm: omap3: Directly use SMC #1 in lowlevel_init.S
authorPali Rohár <pali@kernel.org>
Thu, 13 Apr 2023 20:34:43 +0000 (22:34 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:28 +0000 (15:31 -0400)
commit7add47959ed24a9cb7ffef081d2f9b5bdb8ae275
tree14da4efad4d28e4bfcb56fb5245def02e8776f91
parent51e0cacca7b8039a6c37cbd6b5f77ac2e91045f2
arm: omap3: Directly use SMC #1 in lowlevel_init.S

Since commit de39dc71625d ("arm: armv7-a: Compile and tune for armv7-a
instead of armv5") is used -march=armv7-a option for Omap3 platforms.

With directive ".arch_extension sec" it is possible for -march=armv7-a to
directly use ARM SMC instruction.

So enable ".arch_extension sec" in Omap3 lowlevel_init.S and replace hand
assembled ".word 0xe1600071" by "SMC #1".

Since commit 51d063865064 ("arm: omap-common: add secure smc entry") same
pattern is already used in arch/arm/cpu/armv7/omap-common/lowlevel_init.S.

Signed-off-by: Pali Rohár <pali@kernel.org>
arch/arm/mach-omap2/omap3/lowlevel_init.S