summaryrefslogtreecommitdiff
path: root/src/kservice.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-14 23:59:42 +0000
committer[email protected] <[email protected]>2011-06-14 23:59:42 +0000
commitee68988518f8aa2b7cdafc2bcfe0abe6ad7df385 (patch)
treec673b27eee805e37c3c138e4e1d4c3596f985c9b /src/kservice.c
parent99dc4465a66d757b1a94220b513d30e647861b4c (diff)
change the RT_DEBUG_NOT_REENT to RT_DEBUG_NOT_IN_INTERRUPT.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1503 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/kservice.c')
-rw-r--r--src/kservice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kservice.c b/src/kservice.c
index 90a3ff5b65..295a917842 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -27,7 +27,7 @@
#ifndef RT_USING_NEWLIB
/* global errno in RT-Thread*/
-int errno;
+volatile int errno;
#else
#include <errno.h>
#endif
@@ -44,7 +44,7 @@ rt_err_t rt_get_errno(void)
{
rt_thread_t tid;
- RT_DEBUG_NOT_REENT
+ RT_DEBUG_NOT_IN_INTERRUPT;
tid = rt_thread_self();
if (tid == RT_NULL) return errno;
@@ -61,7 +61,7 @@ void rt_set_errno(rt_err_t error)
{
rt_thread_t tid;
- RT_DEBUG_NOT_REENT
+ RT_DEBUG_NOT_IN_INTERRUPT;
tid = rt_thread_self();
if (tid == RT_NULL) { errno = error; return; }