diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-12-27 09:49:33 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-12-27 09:49:33 +0000 |
commit | 479414faccedeeb1ca7d0b6074bd69f2ef6dd441 (patch) | |
tree | cc139d0cbc6e5491a0540b0892de027b80fc7093 /firmware/kernel.c | |
parent | bf897793d7275948b6d2953283448b890058488e (diff) | |
download | rockbox-479414faccedeeb1ca7d0b6074bd69f2ef6dd441.tar.gz rockbox-479414faccedeeb1ca7d0b6074bd69f2ef6dd441.zip |
Fix profiling on coldfire with newer Gcc.
In switch_thread, make the call to profile_thread_stopped from an inline asm block to make sure the sp is pointing to the right place before storing the context. This apparently worked by luck with the old Gcc.
The workaround used for coldfire in the codeclib's __cyg_profile_func_enter does not work with newer gcc, however the workaround isn't needed for those so enable it only for coldfire gcc version < 4.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28908 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
0 files changed, 0 insertions, 0 deletions