DO-NOT-UPSTREAM arm, firmware, LLVMLinux: replace naked function with hard coded...
authorBehan Webster <behanw@converseincode.com>
Fri, 30 May 2014 18:35:50 +0000 (11:35 -0700)
committerStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 06:21:10 +0000 (23:21 -0700)
commit626b66c08d43b26810ce06c58b16e58bd26c84cf
tree248a3cfa72a260b78cdee3e8baeaa2782fb9e1ee
parent5bf15bde84873dbdf9eea1ae8c811e862a51e7ba
DO-NOT-UPSTREAM arm, firmware, LLVMLinux: replace naked function with hard coded parameters

As documented in GCC naked functions should only use Basic asm syntax. The
Extended asm or mixture of Basic asm and "C" code is not guarantee. Currently
this works because it was hard coded to follow and check GCC behavior for
arguments and register placement.

By replacing the naked function with an inline one it is possible to have the
same result in a more portable and reliable way. Register placement checks
are not needed since there is no hard code.

Not-signed-off-by: Behan Webster <behanw@converseincode.com>
Not-signed-off-by: Vinícius Tinti <viniciustinti@gmail.com>
arch/arm/firmware/trusted_foundations.c