diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-26 17:38:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-27 10:48:18 +0200 |
commit | a4c3e717a55733c2dba08acae8435f4fdc8ec31f (patch) | |
tree | 35412794a9b6a7c70c19ab1f6c21ef1b70f6ae45 | |
parent | sptests/spthreadq01: Add SMP support (diff) | |
download | rtems-a4c3e717a55733c2dba08acae8435f4fdc8ec31f.tar.bz2 |
score: Add SMP support to _Watchdog_Report_chain()
-rw-r--r-- | cpukit/score/src/watchdogreportchain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/watchdogreportchain.c b/cpukit/score/src/watchdogreportchain.c index b490f79b95..0f6da0b79c 100644 --- a/cpukit/score/src/watchdogreportchain.c +++ b/cpukit/score/src/watchdogreportchain.c @@ -17,9 +17,9 @@ #include "config.h" #endif -#include <rtems/system.h> #include <rtems/score/watchdogimpl.h> #include <rtems/score/isr.h> +#include <rtems/score/threaddispatch.h> #include <rtems/bspIo.h> void _Watchdog_Report_chain( @@ -30,6 +30,7 @@ void _Watchdog_Report_chain( ISR_Level level; Chain_Node *node; + _Thread_Disable_dispatch(); _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { @@ -46,4 +47,5 @@ void _Watchdog_Report_chain( printk( "Chain is empty\n" ); } _ISR_Enable( level ); + _Thread_Enable_dispatch(); } |