Changeset 9f2c3ce in rtems-libbsd


Ignore:
Timestamp:
Nov 15, 2018, 7:23:17 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
Children:
70555d5
Parents:
9f87c45
git-author:
Sebastian Huber <sebastian.huber@…> (11/15/18 07:23:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/18 07:26:49)
Message:

Fix locking issue in epoch_watchdog()

The _Watchdog_Per_CPU_insert_ticks() assumes that interrupts are
disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-kernel-epoch.c

    r9f87c45 r9f2c3ce  
    9292{
    9393        struct epoch_pcpu *epcpu;
     94        ISR_Level level;
    9495
    9596        epcpu = __containerof(wdg, struct epoch_pcpu, wdg);
     97        _ISR_Local_disable(level);
    9698        _Watchdog_Per_CPU_insert_ticks(&epcpu->wdg,
    9799            _Watchdog_Get_CPU(&epcpu->wdg), 1);
     100        _ISR_Local_enable(level);
    98101
    99102        if (RTEMS_PREDICT_FALSE(epcpu->cb_count != 0)) {
Note: See TracChangeset for help on using the changeset viewer.