diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-16 15:54:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-16 15:54:21 +0000 |
commit | 4cb19041d7d78d9ae29f878871e4d2b89b9abc22 (patch) | |
tree | 3efcf5818a29323bf55577ffbb324cd301249519 /cpukit/rtems/src/tasksetnote.c | |
parent | 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/tasksetnote.c')
-rw-r--r-- | cpukit/rtems/src/tasksetnote.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/rtems/src/tasksetnote.c b/cpukit/rtems/src/tasksetnote.c index c8d5f82b77..ebb501998e 100644 --- a/cpukit/rtems/src/tasksetnote.c +++ b/cpukit/rtems/src/tasksetnote.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> @@ -59,6 +60,9 @@ rtems_status_code rtems_task_set_note( Objects_Locations location; RTEMS_API_Control *api; + if ( !rtems_configuration_get_notepads_enabled() ) + return RTEMS_NOT_CONFIGURED; + /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. |