From 9c2b203025976fceb3840c2785c96f1baa261982 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Thu, 9 Mar 2006 01:37:52 +0000 Subject: Fix profiling compilation for non-m68k targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8967 a1c6a512-1295-4272-9138-f99709370657 --- firmware/profile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/profile.c') diff --git a/firmware/profile.c b/firmware/profile.c index 8ad46515f8..f6cffa7c53 100644 --- a/firmware/profile.c +++ b/firmware/profile.c @@ -76,10 +76,14 @@ static void profile_timer_unregister(void); static void write_function_recursive(int fd, struct pfd_struct *pfd, int depth); /* Be careful to use the right one for the size of your variable */ +#ifdef CPU_COLDFIRE #define ADDQI_L(_var,_value) \ asm ("addq.l %[value],%[var];" \ : [var] "+g" (_var) \ : [value] "I" (_value) ) +#else +#define ADDQI_L(var, value) var += value +#endif void profile_thread_stopped(int current_thread) { if (current_thread == profiling_thread) { @@ -227,7 +231,6 @@ void profile_func_enter(void *self_pc, void *from_pc) { if (profiling) { return; } - /* this is equivalent to 'profiling = PROF_BUSY;' but it's faster */ profiling = PROF_BUSY; /* A check that the PC is in the code range here wouldn't hurt, but this is * logically guaranteed to be a valid address unless the constants are -- cgit