From c4808ca59f68d6142c8e12ce11417158f5fe8149 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 31 Oct 1995 21:28:16 +0000 Subject: typos fixed --- cpukit/rtems/src/msg.c | 2 +- cpukit/rtems/src/region.c | 2 ++ cpukit/sapi/include/rtems/io.h | 22 +++++++++++----------- cpukit/sapi/src/io.c | 29 +++++++++++++++++++---------- cpukit/score/cpu/sparc/README | 8 -------- cpukit/score/cpu/sparc/cpu.c | 15 +++++++++++++++ 6 files changed, 48 insertions(+), 30 deletions(-) (limited to 'cpukit') diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c index 899254d11d..7d7c6e3025 100644 --- a/cpukit/rtems/src/msg.c +++ b/cpukit/rtems/src/msg.c @@ -109,7 +109,7 @@ Message_queue_Control *_Message_queue_Allocate ( * * Output parameters: * id - queue id - * RTEMS_SUCCESSFUL - if successful + * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful */ diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c index ecfaf32382..d0720f5040 100644 --- a/cpukit/rtems/src/region.c +++ b/cpukit/rtems/src/region.c @@ -314,6 +314,8 @@ rtems_status_code rtems_region_get_segment( Thread_Control *executing; void *the_segment; + *segment = NULL; + if ( size == 0 ) return RTEMS_INVALID_SIZE; diff --git a/cpukit/sapi/include/rtems/io.h b/cpukit/sapi/include/rtems/io.h index 6f3afba53e..592fbe08ed 100644 --- a/cpukit/sapi/include/rtems/io.h +++ b/cpukit/sapi/include/rtems/io.h @@ -115,9 +115,9 @@ STATIC INLINE void _IO_Manager_initialization( */ rtems_status_code rtems_io_register_name( - char *device_name, - rtems_device_major_number major, - rtems_device_minor_number minor + char *device_name, + rtems_device_major_number major, + rtems_device_minor_number minor ); @@ -130,8 +130,8 @@ rtems_status_code rtems_io_register_name( */ rtems_status_code rtems_io_lookup_name( - const char *pathname, - rtems_driver_name_t **rnp + const char *name, + rtems_driver_name_t **device_info ); @@ -147,7 +147,7 @@ rtems_status_code rtems_io_lookup_name( rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* @@ -162,7 +162,7 @@ rtems_status_code rtems_io_initialize( rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* @@ -177,7 +177,7 @@ rtems_status_code rtems_io_open( rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* @@ -192,7 +192,7 @@ rtems_status_code rtems_io_close( rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* @@ -207,7 +207,7 @@ rtems_status_code rtems_io_read( rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* @@ -222,7 +222,7 @@ rtems_status_code rtems_io_write( rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ); /* diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c index 473fe9a444..49c89b22dc 100644 --- a/cpukit/sapi/src/io.c +++ b/cpukit/sapi/src/io.c @@ -46,8 +46,13 @@ void _IO_Initialize_all_drivers( void ) * Associate a name with a driver * * Input Paramters: + * device_name - pointer to name string to associate with device + * major - device major number to receive name + * minor - device minor number to receive name * * Output Parameters: + * RTEMS_SUCCESSFUL - if successful + * error code - if unsuccessful */ rtems_status_code rtems_io_register_name( @@ -90,13 +95,17 @@ rtems_status_code rtems_io_register_name( * Find what driver "owns" this name * * Input Paramters: + * name - name to lookup the associated device * * Output Parameters: + * device_info - device associate with name + * RTEMS_SUCCESSFUL - if successful + * error code - if unsuccessful */ rtems_status_code rtems_io_lookup_name( - const char *pathname, - rtems_driver_name_t **rnp + const char *name, + rtems_driver_name_t **device_info ) { rtems_driver_name_t *np; @@ -106,13 +115,13 @@ rtems_status_code rtems_io_lookup_name( index < _IO_Number_of_devices ; index++, np++ ) if (np->device_name) - if (strncmp(np->device_name, pathname, np->device_name_length) == 0) + if (strncmp(np->device_name, name, np->device_name_length) == 0) { - *rnp = np; + *device_info = np; return RTEMS_SUCCESSFUL; } - *rnp = 0; + *device_info = 0; return RTEMS_UNSATISFIED; } @@ -165,7 +174,7 @@ rtems_status_code rtems_io_initialize( rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ) { rtems_device_driver_entry callout; @@ -195,7 +204,7 @@ rtems_status_code rtems_io_open( rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ) { rtems_device_driver_entry callout; @@ -225,7 +234,7 @@ rtems_status_code rtems_io_close( rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ) { rtems_device_driver_entry callout; @@ -255,7 +264,7 @@ rtems_status_code rtems_io_read( rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ) { rtems_device_driver_entry callout; @@ -285,7 +294,7 @@ rtems_status_code rtems_io_write( rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, - void *argument + void *argument ) { rtems_device_driver_entry callout; diff --git a/cpukit/score/cpu/sparc/README b/cpukit/score/cpu/sparc/README index 0c481d67c1..c4c2200075 100644 --- a/cpukit/score/cpu/sparc/README +++ b/cpukit/score/cpu/sparc/README @@ -108,11 +108,3 @@ thus would be unable to restore the FP context of the incoming task. 2. On a deferred FP context switch. In this case, the system might switch from FP Task A to non-FP Task B and then to FP Task C. In this scenario, the floating point state must technically be saved by a non-FP task. - - - - - - - - diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c index 23d998cab5..9f242d4a8f 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -1,6 +1,21 @@ /* * SPARC Dependent Source * + * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. + * On-Line Applications Research Corporation (OAR). + * All rights assigned to U.S. Government, 1994. + * + * This material may be reproduced by or for the U.S. Government pursuant + * to the copyright license under the clause at DFARS 252.227-7013. This + * notice must appear in all copies of this file and its derivatives. + * + * Ported to ERC32 implementation of the SPARC by On-Line Applications + * Research Corporation (OAR) under contract to the European Space + * Agency (ESA). + * + * ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995. + * European Space Agency. + * * $Id$ */ -- cgit v1.2.3