]> git.sur5r.net Git - freertos/commitdiff
A little extra commenting added to the Cortex M3 port layers.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 5 Jan 2011 13:36:35 +0000 (13:36 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 5 Jan 2011 13:36:35 +0000 (13:36 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1224 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/CCS4/MSP430X/data_model.h
Source/portable/GCC/ARM_CM3/port.c
Source/portable/RVDS/ARM_CM3/port.c

index 4cc526ef7521372c2baaa7c56d63b8925c7dc149..2f3ec5e5fd7c02ed9939d6137276e2e32d232b5f 100644 (file)
                .define "push.a", push_x\r
                .define "pop.a", pop_x\r
                .define "mov.a", mov_x\r
-               .define "cmp.a", cmp_x\r
        .else\r
                .define "pushm.w", pushm_x\r
                .define "popm.w", popm_x\r
                .define "push.w", push_x\r
                .define "pop.w", pop_x\r
                .define "mov.w", mov_x\r
-               .define "cmp.w", cmp_x\r
        .endif\r
        \r
        .if $DEFINED( __LARGE_CODE_MODEL__ )\r
index 85d28c6ecd0029aab1574ebe27016d7634f00b45..f601825c9571a78a20be169cae03127eb1b4524b 100644 (file)
@@ -155,7 +155,7 @@ void vPortStartFirstTask( void )
                                        " ldr r0, [r0]                  \n"\r
                                        " ldr r0, [r0]                  \n"\r
                                        " msr msp, r0                   \n" /* Set the msp back to the start of the stack. */\r
-                                       " cpsie i                               \n"\r
+                                       " cpsie i                               \n" /* Globally enable interrupts. */\r
                                        " svc 0                                 \n" /* System call to start first task. */\r
                                        " nop                                   \n"\r
                                );\r
index c864f821a6b7dd6fb3015594e8162adacc3fa5a1..e0cd391c6350769cb79ae59adb7de4bb2f15c32b 100644 (file)
@@ -148,8 +148,9 @@ __asm void vPortStartFirstTask( void )
        ldr r0, [r0]\r
        /* Set the msp back to the start of the stack. */\r
        msr msp, r0\r
-       /* Call SVC to start the first task. */\r
+       /* Globally enable interrupts. */\r
        cpsie i\r
+       /* Call SVC to start the first task. */\r
        svc 0\r
        nop\r
 }\r