#904 closed defect (fixed)

GCC moves code past interrupt enable/disable operations

Reported by: Eric Norum Owned by: Joel Sherrill
Priority: highest Milestone: 2
Component: score Version: unknown
Severity: critical Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

GCC moves one or more of the assignments past the enable:

rtems_interrupt_disable(level);
seconds = _TOD_Seconds_since_epoch;
microseconds = _TOD_Current.ticks;

rtems_interrupt_enable(level);

Release:
Likely all RTEMS releases

Environment:
Likely all, but this report includes a proposed patch for M68k targets

Attachments (2)

barrier-46.diff (4.1 KB) - added by Eric Norum on 12/03/06 at 13:31:13.
barrier-46.diff
barrier-47.diff (4.4 KB) - added by Eric Norum on 12/03/06 at 13:31:13.
barrier-47.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 03/07/06 at 19:48:14 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patches applied to 4.6 branch and head.

Changed on 12/03/06 at 13:31:13 by Eric Norum

Attachment: barrier-47.diff added

barrier-47.diff

Note: See TracTickets for help on using tickets.