diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-08-24 12:38:42 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-24 12:38:42 +0000 |
| commit | 46454ac2a8a7d693ac135f0d4a9461bbcf24eea9 (patch) | |
| tree | 86488784b36537f382ccd448c6684d60f1540527 /apps/codecs/lib/setjmp.h | |
| parent | 20de4c55a2ddfa802a01cc353884d73a934bf7ba (diff) | |
| download | rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.zip rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.tar.gz rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.tar.bz2 rockbox-46454ac2a8a7d693ac135f0d4a9461bbcf24eea9.tar.xz | |
Move setjmp to lib and add setjmp for sh (imported from newlib) and compile it as separate library.
It's used by both, plugins and codecs, and sh/hwcodec doesn't compile codecs
so it doesn't fit into sources.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27869 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/setjmp.h')
| -rw-r--r-- | apps/codecs/lib/setjmp.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/apps/codecs/lib/setjmp.h b/apps/codecs/lib/setjmp.h deleted file mode 100644 index f7ff2ea..0000000 --- a/apps/codecs/lib/setjmp.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef _SETJMP_H_ -#define _SETJMP_H_ - -/* Combined parts of include/setjmp.h and include/machine/setjmp.h in - * newlib 1.17.0, with minor changes for Rockbox. - */ - -#ifdef CPU_ARM -/* - * All callee preserved registers: - * v1 - v7, fp, ip, sp, lr, f4, f5, f6, f7 - */ -#define _JBLEN 23 -#endif - -/* necv70 was 9 as well. */ - -#ifdef CPU_COLDFIRE -/* - * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6, - * fp2-fp7 for 68881. - * All else recovered by under/over(flow) handling. - */ -#define _JBLEN 34 -#endif - -#ifdef CPU_MIPS -#if CPU_MIPS == 64 -#define _JBTYPE long long -#endif -#ifdef __mips_soft_float -#define _JBLEN 11 -#else -#define _JBLEN 23 -#endif -#endif - -#if 0 /* Disabled for now, as SH doesn't have setjmp implementation (yet) */ -#ifdef __sh__ -#if __SH5__ -#define _JBLEN 50 -#define _JBTYPE long long -#else -#define _JBLEN 20 -#endif /* __SH5__ */ -#endif -#endif - -#ifdef _JBLEN -#ifdef _JBTYPE -typedef _JBTYPE jmp_buf[_JBLEN]; -#else -typedef int jmp_buf[_JBLEN]; -#endif -#else -typedef int jmp_buf; -#endif - - -extern void longjmp(jmp_buf __jmpb, int __retval); -extern int setjmp(jmp_buf __jmpb); - -#endif // _SETJMP_H_ |