diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-03-09 01:37:52 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-09 01:37:52 +0000 |
| commit | 9c2b203025976fceb3840c2785c96f1baa261982 (patch) | |
| tree | 6ea28de2148888f3c987679f7ef57dcd13f90657 /apps/plugins/lib | |
| parent | ca9e8b6cf5d1bdadf0040eb2f4baec1cbd5e3d7a (diff) | |
| download | rockbox-9c2b203025976fceb3840c2785c96f1baa261982.zip rockbox-9c2b203025976fceb3840c2785c96f1baa261982.tar.gz rockbox-9c2b203025976fceb3840c2785c96f1baa261982.tar.bz2 rockbox-9c2b203025976fceb3840c2785c96f1baa261982.tar.xz | |
Fix profiling compilation for non-m68k targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8967 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/profile_plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/lib/profile_plugin.c b/apps/plugins/lib/profile_plugin.c index 3318476..38c6d81 100644 --- a/apps/plugins/lib/profile_plugin.c +++ b/apps/plugins/lib/profile_plugin.c @@ -29,8 +29,12 @@ void profile_init(struct plugin_api* pa) } void __cyg_profile_func_enter(void *this_fn, void *call_site) { +#ifdef CPU_COLDFIRE (void)call_site; local_rb->profile_func_enter(this_fn, __builtin_return_address(1)); +#else + local_rb->profile_func_enter(this_fn, call_site); +#endif } void __cyg_profile_func_exit(void *this_fn, void *call_site) { |