[Bug 1697] New: fix stack related bug in lm32 arch introduced by PR 1680

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Sep 2 16:02:53 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1697

           Summary: fix stack related bug in lm32 arch introduced by PR
                    1680
           Product: RTEMS
           Version: HEAD
          Platform: lm32
        OS/Version: RTEMS
            Status: NEW
          Severity: critical
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: yann at minet.net


Created an attachment (id=1045)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1045)
patch that fixes the issue

This is a patch that fixes the bug introduced by commit
dd7fe9b8626ea8e485c4e5623258482efb30dbe3 which does : 

-    ((uintptr_t) _CPU_Interrupt_stack_high & ~CPU_STACK_ALIGNMENT);
+    ((uintptr_t) _CPU_Interrupt_stack_high & ~(CPU_STACK_ALIGNMENT - 1));

on cpukit/score/src/isr.c

The patch basically just set CPU_STACK_ALIGNMENT to 4 instead of 0 :)

It allows ticker to run normally on lm32-evr (and i guess on Milkymist even if
i didn't test)

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list