Skip to content
Snippets Groups Projects
Commit c65a2abb authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Albert ARIBAUD
Browse files

ARM: make gd a function for clang

"clang does not support global register variables; this is
unlikely to be implemented soon because it requires additional
LLVM backend support" [1]

Workaround it by obtaining the value of gd/r9 by an inline
asm routine. Note there is no set routine added for ARM at the
moment, since most if not all updates of gd from c are actually
not needed for ARM.

[1] http://clang.llvm.org/docs/UsersManual.html



cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 1401d87b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment