rendered paste bodyIndex: firmware/profile.c
===================================================================
--- firmware/profile.c (revision 16084)
+++ firmware/profile.c (working copy)
@@ -59,6 +59,8 @@
#include <timer.h>
#include "profile.h"
+
+
static unsigned short profiling = PROF_OFF;
static size_t recursion_level;
static unsigned short indices[INDEX_SIZE];
@@ -214,6 +216,12 @@
profiling = PROF_ON;
}
+void __cyg_profile_func_exit(void *self_pc, void *call_site) __attribute__ ((no_instrument_function));
+void __cyg_profile_func_exit(void *self_pc, void *call_site)
+{
+ profile_func_exit(self_pc, call_site);
+}
+
#define ALLOCATE_PFD(temp) \
temp = ++pfds[0].link;\
if (temp >= NUMPFDS) goto overflow; \
@@ -304,3 +312,10 @@
profiling = PROF_ERROR;
return;
}
+
+void __cyg_profile_func_enter(void *self_pc, void *call_site) __attribute__ ((no_instrument_function));
+void __cyg_profile_func_enter(void *self_pc, void *from_pc)
+{
+ profile_func_enter(self_pc, from_pc);
+}
+
Index: apps/plugins/sudoku/generator.c
===================================================================
--- apps/plugins/sudoku/generator.c (revision 16084)
+++ apps/plugins/sudoku/generator.c (working copy)
@@ -50,8 +50,8 @@
* 24-26 hint
* 27-31 unused
*/
-#define INDEX_MASK 0x0000007f
-#define GET_INDEX(val) (INDEX_MASK&(val))
+#define SUDOKU_INDEX_MASK 0x0000007f
+#define GET_INDEX(val) (SUDOKU_INDEX_MASK&(val))
#define SET_INDEX(val) (val)
#define STATE_MASK 0x0000ff80