]> git.sur5r.net Git - freertos/commitdiff
Ensure byte alignment is maintained in PIC32 port layer when 8 byte alignment is...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 13 Apr 2011 15:59:17 +0000 (15:59 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 13 Apr 2011 15:59:17 +0000 (15:59 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1355 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/MPLAB/PIC32MX/port.c

index 31c8da540cca67c629c06cbcd48674c0e6ec8b49..2cd68ac17b1ac23ba5017f6d47e8585986f0628a 100644 (file)
@@ -108,6 +108,9 @@ void __attribute__( (interrupt(ipl1), vector(_CORE_SOFTWARE_0_VECTOR))) vPortYie
  */\r
 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )\r
 {\r
+       /* Ensure byte alignment is maintained when leaving this function. */\r
+       pxTopOfStack--;\r
+\r
        *pxTopOfStack = (portSTACK_TYPE) 0xDEADBEEF;\r
        pxTopOfStack--;\r
 \r