Changeset 687463d in rtems


Ignore:
Timestamp:
Dec 3, 2015, 8:56:31 PM (4 years ago)
Author:
Jan Sommer <soja-lists@…>
Branches:
master
Children:
f2a228b
Parents:
c8a8a601
git-author:
Jan Sommer <soja-lists@…> (12/03/15 20:56:31)
git-committer:
Gedare Bloom <gedare@…> (12/13/15 01:22:03)
Message:

Store task_id of the current thread for the ISR before waiting for the transient event

The ISR will send a transient event to the task specified in bus->taskid.
Make sure that the correct task_id is written to this field before waiting
for the transient event to arrive.

Fixes #2483

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c

    rc8a8a601 r687463d  
    9393      /* Sleep until the TX FIFO has free space for a new write. */
    9494      if (
     95          bus->task_id = rtems_task_self();
    9596          rtems_event_transient_receive(RTEMS_WAIT, bus->base.timeout) !=
    9697          RTEMS_SUCCESSFUL
Note: See TracChangeset for help on using the changeset viewer.