diff options
Diffstat (limited to 'c/src/lib/libc/support.c')
-rw-r--r-- | c/src/lib/libc/support.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/c/src/lib/libc/support.c b/c/src/lib/libc/support.c new file mode 100644 index 0000000000..4a33bd4086 --- /dev/null +++ b/c/src/lib/libc/support.c @@ -0,0 +1,52 @@ +/* + * Routines to Access Internal RTEMS Resources + * + * COPYRIGHT (c) 1989-1997. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may in + * the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + * + */ + +#include <rtems.h> + +void MY_task_set_note( + Thread_Control *the_thread, + unsigned32 notepad, + unsigned32 note +) +{ + RTEMS_API_Control *api; + + api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; + + if ( api ) + api->Notepads[ notepad ] = note; +} + + +unsigned32 MY_task_get_note( + Thread_Control *the_thread, + unsigned32 notepad +) +{ + RTEMS_API_Control *api; + + api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; + + return api->Notepads[ notepad ]; +} + +void *MY_CPU_Context_FP_start( + void *base, + unsigned32 offset +) +{ + return _CPU_Context_Fp_start( base, offset ); +} + |