aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-01-16 11:40:42 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-01-16 11:40:42 +0000
commit9bec8d317920fba8fa8ab59a45c112432ff39481 (patch)
tree3c65d98a2cb2d69b96fc2e069fda2ab676891206 /os
parentc2ffa54ce115fa017ca086bd82245783d0619304 (diff)
downloadChibiOS-9bec8d317920fba8fa8ab59a45c112432ff39481.tar.gz
ChibiOS-9bec8d317920fba8fa8ab59a45c112432ff39481.tar.bz2
ChibiOS-9bec8d317920fba8fa8ab59a45c112432ff39481.zip
Fixed bug #693.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8766 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/rt/src/chstats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/rt/src/chstats.c b/os/rt/src/chstats.c
index 40169642e..82d2a67a1 100644
--- a/os/rt/src/chstats.c
+++ b/os/rt/src/chstats.c
@@ -72,7 +72,9 @@ void _stats_init(void) {
*/
void _stats_increase_irq(void) {
+ port_lock_from_isr();
ch.kernel_stats.n_irq++;
+ port_unlock_from_isr();
}
/**