diff options
author | Daniel Ankers <dan@weirdo.org.uk> | 2006-08-24 13:10:20 +0000 |
---|---|---|
committer | Daniel Ankers <dan@weirdo.org.uk> | 2006-08-24 13:10:20 +0000 |
commit | 67ddef9aac17a1cbd5cf620d377a67b0ed08d1dd (patch) | |
tree | 21314732a4a7ca6d470cf9056a94aa256a05b6ea /firmware/export | |
parent | dbf98172b9140adb846aab9650a4f08deab7d29d (diff) |
Fix profile builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10734 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/profile.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/firmware/export/profile.h b/firmware/export/profile.h index cb751328ae..3736ac7924 100644 --- a/firmware/export/profile.h +++ b/firmware/export/profile.h @@ -8,7 +8,7 @@ * $Id$ * * Profiling routines counts ticks and calls to each profiled function. - * + * * Copyright (C) 2005 by Brandon Low * * All files in this archive are subject to the GNU General Public License. @@ -31,8 +31,8 @@ #define INDEX_MASK 0x7FF /* lower INDEX_BITS 1 */ /* - * In the current setup (pfd has 4 longs and 2 shorts) this uses 20k of RAM - * for profiling, and allows for profiling sections of code with up-to + * In the current setup (pfd has 4 longs and 2 shorts) this uses 20k of RAM + * for profiling, and allows for profiling sections of code with up-to * 1024 function caller->callee pairs */ #define NUMPFDS 1024 @@ -54,8 +54,6 @@ struct pfd_struct { #define PROF_OFF_THREAD 0x10 #define PROF_ON_THREAD 0x0F -extern int current_thread; - /* Initialize and start profiling */ void profstart(int current_thread) NO_PROF_ATTR; @@ -72,7 +70,7 @@ void profile_thread_stopped(int current_thread) void profile_thread_started(int current_thread) NO_PROF_ATTR; -void profile_func_exit(void *this_fn, void *call_site) +void profile_func_exit(void *this_fn, void *call_site) NO_PROF_ATTR ICODE_ATTR; void profile_func_enter(void *this_fn, void *call_site) NO_PROF_ATTR ICODE_ATTR; |