Added ARM32 support
This commit is contained in:
1 parent
df792729ef
commit
1212cb9dbe
36 files changed
+2381
-783
No files matched your search
@@ -2,7 +2,7 @@
|
||||
* @file Plugin.cpp
|
||||
* @brief PluginV1 -- "before your edit". See PluginV2/src/Plugin.cpp for
|
||||
* "after"; the two deliberately export the identical set of names
|
||||
* (minus plugin_legacy_feature, removed in V2) so HotReloadContext can
|
||||
* (minus plugin_legacy_feature, removed in V2) so Context can
|
||||
* line them up. See ../Shared/PluginApi.h for what each export is
|
||||
* there to demonstrate (and for the documentation of every function
|
||||
* defined here).
|
||||
@@ -24,7 +24,16 @@ int plugin_legacy_feature(int input)
|
||||
return input;
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#if defined(__arm__) || defined(_M_ARM)
|
||||
// See Shared/PluginApi.h's doc comment on plugin_tiny_function for why ARM32 needs this, rather
|
||||
// than the plain empty body every other architecture uses below.
|
||||
__asm__(
|
||||
".global plugin_tiny_function\n"
|
||||
".type plugin_tiny_function, %function\n"
|
||||
"plugin_tiny_function:\n"
|
||||
"\tbx lr\n"
|
||||
".size plugin_tiny_function, . - plugin_tiny_function\n");
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
void plugin_tiny_function(void)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user