Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Wednesday, January 23rd, 2008 at 12:17:59am UTC 

  1. Index: firmware/profile.c
  2. ===================================================================
  3. --- firmware/profile.c  (revision 16084)
  4. +++ firmware/profile.c  (working copy)
  5. @@ -59,6 +59,8 @@
  6.  #include <timer.h>
  7.  #include "profile.h"
  8.  
  9. +
  10. +
  11.  static unsigned short profiling = PROF_OFF;
  12.  static size_t recursion_level;
  13.  static unsigned short indices[INDEX_SIZE];
  14. @@ -214,6 +216,12 @@
  15.      profiling = PROF_ON;
  16.  }
  17.  
  18. +void __cyg_profile_func_exit(void *self_pc, void *call_site) __attribute__ ((no_instrument_function));
  19. +void __cyg_profile_func_exit(void *self_pc, void *call_site)
  20. +{
  21. +    profile_func_exit(self_pc, call_site);
  22. +}
  23. +
  24.  #define ALLOCATE_PFD(temp) \
  25.      temp = ++pfds[0].link;\
  26.      if (temp >= NUMPFDS) goto overflow; \
  27. @@ -304,3 +312,10 @@
  28.      profiling = PROF_ERROR;
  29.      return;
  30.  }
  31. +
  32. +void __cyg_profile_func_enter(void *self_pc, void *call_site) __attribute__ ((no_instrument_function));
  33. +void __cyg_profile_func_enter(void *self_pc, void *from_pc)
  34. +{
  35. +    profile_func_enter(self_pc, from_pc);
  36. +}
  37. +
  38. Index: apps/plugins/sudoku/generator.c
  39. ===================================================================
  40. --- apps/plugins/sudoku/generator.c     (revision 16084)
  41. +++ apps/plugins/sudoku/generator.c     (working copy)
  42. @@ -50,8 +50,8 @@
  43.   *        24-26   hint
  44.   *        27-31   unused
  45.   */
  46. -#define INDEX_MASK              0x0000007f
  47. -#define GET_INDEX(val)          (INDEX_MASK&(val))
  48. +#define SUDOKU_INDEX_MASK              0x0000007f
  49. +#define GET_INDEX(val)          (SUDOKU_INDEX_MASK&(val))
  50.  #define SET_INDEX(val)          (val)
  51.  
  52.  #define STATE_MASK              0x0000ff80

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus