summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskgetnote.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-16 15:54:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-16 15:54:21 +0000
commit4cb19041d7d78d9ae29f878871e4d2b89b9abc22 (patch)
tree3efcf5818a29323bf55577ffbb324cd301249519 /cpukit/rtems/src/taskgetnote.c
parent2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4cb19041d7d78d9ae29f878871e4d2b89b9abc22.tar.bz2
2008-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/tasks.h, rtems/src/taskgetnote.c, rtems/src/tasks.c, rtems/src/tasksetnote.c, sapi/include/confdefs.h: Add CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS.
Diffstat (limited to 'cpukit/rtems/src/taskgetnote.c')
-rw-r--r--cpukit/rtems/src/taskgetnote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskgetnote.c b/cpukit/rtems/src/taskgetnote.c
index dffb2da2d6..b3983f322a 100644
--- a/cpukit/rtems/src/taskgetnote.c
+++ b/cpukit/rtems/src/taskgetnote.c
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/rtems/modes.h>
@@ -60,6 +61,9 @@ rtems_status_code rtems_task_get_note(
Objects_Locations location;
RTEMS_API_Control *api;
+ if ( !rtems_configuration_get_notepads_enabled() )
+ return RTEMS_NOT_CONFIGURED;
+
if ( !note )
return RTEMS_INVALID_ADDRESS;