Subversion Repositories freemyipod

Rev

Rev 489 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 489 Rev 538
Line 6... Line 6...
6
    {                                                                                             \
6
    {                                                                                             \
7
        asm volatile("swi\t2\n\tldr\tr3, =__emcore_required_version\nldr\tr3, [r3]\n\t"           \
7
        asm volatile("swi\t2\n\tldr\tr3, =__emcore_required_version\nldr\tr3, [r3]\n\t"           \
8
                     "ldr\tr2, [r0]\n\tcmp\tr3, r2\n\tldrls\tr1, [r0,#4]\n\tcmpls\tr1, r3\n\t"    \
8
                     "ldr\tr2, [r0]\n\tcmp\tr3, r2\n\tldrls\tr1, [r0,#4]\n\tcmpls\tr1, r3\n\t"    \
9
                     "movhi\tr0, #0\n\tldrhi\tr1, =__emcore_incompatible_api_str\n\t"             \
9
                     "movhi\tr0, #0\n\tldrhi\tr1, =__emcore_incompatible_api_str\n\t"             \
10
                     "swihi\t1\n\tldr\tr1, =__emcore_syscall\n\tstr\tr0, [r1]\n\t"                \
10
                     "swihi\t1\n\tldr\tr1, =__emcore_syscall\n\tstr\tr0, [r1]\n\t"                \
-
 
11
                     "b\t__emcore_entrypoint_c\n\t.ltorg\n__emcore_entrypoint_c:\n\t"             \
11
                 ::: "r0", "r1", "r2", "r3", "r12", "lr", "cc", "memory");                        \
12
                 ::: "r0", "r1", "r2", "r3", "r12", "lr", "cc", "memory");                        \
12
        thread_set_name(NULL, threadnamestr);                                                     \
13
        thread_set_name(NULL, threadnamestr);                                                     \
13
        thread_set_priority(NULL, threadprio);                                                    \
14
        thread_set_priority(NULL, threadprio);                                                    \
14
        mainfunc();                                                                               \
15
        mainfunc();                                                                               \
15
    }                                                                                             \
16
    }                                                                                             \