diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-02 09:48:25 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-02 09:48:25 +0000 |
commit | 80f77327f3fbd95710cb44e308b3a3fe062ce220 (patch) | |
tree | eff3aea12cf2b570bedcf2570452f45854ced711 /cpukit/score/cpu/nios2 | |
parent | Regenerate. (diff) | |
download | rtems-80f77327f3fbd95710cb44e308b3a3fe062ce220.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'cpukit/score/cpu/nios2')
-rw-r--r-- | cpukit/score/cpu/nios2/cpu.c | 10 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/cpu_asm.S | 24 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/rtems/score/cpu.h | 32 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/rtems/score/nios2.h | 6 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/rtems/score/types.h | 2 |
5 files changed, 37 insertions, 37 deletions
diff --git a/cpukit/score/cpu/nios2/cpu.c b/cpukit/score/cpu/nios2/cpu.c index fe8396b8d7..b13e3bc215 100644 --- a/cpukit/score/cpu/nios2/cpu.c +++ b/cpukit/score/cpu/nios2/cpu.c @@ -46,7 +46,7 @@ void _CPU_Initialize(void) * * XXX document implementation including references if appropriate */ - + uint32_t _CPU_ISR_Get_level( void ) { /* @@ -64,7 +64,7 @@ uint32_t _CPU_ISR_Get_level( void ) * * XXX document implementation including references if appropriate */ - + void _CPU_ISR_install_raw_handler( uint32_t vector, proc_ptr new_handler, @@ -166,10 +166,10 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ) /* Differentiate between IRQ off and on (for debugging) */ if(st & 1) - for(;;); + for(;;); else - for(;;); - + for(;;); + /* insert your "halt" instruction here */ ; } #endif diff --git a/cpukit/score/cpu/nios2/cpu_asm.S b/cpukit/score/cpu/nios2/cpu_asm.S index 2ea697e7aa..543708c9c2 100644 --- a/cpukit/score/cpu/nios2/cpu_asm.S +++ b/cpukit/score/cpu/nios2/cpu_asm.S @@ -89,12 +89,12 @@ _CPU_Context_restore: _exception_vector: - /* + /* * First, re-wind so we're pointed to the instruction where the exception * occurred. */ - addi ea, ea, -4 + addi ea, ea, -4 /* * Now test to determine the cause of the exception. @@ -117,7 +117,7 @@ _exception_vector: br _ISR_Handler -/* ===================================================================== +/* ===================================================================== * Exception handler: * Responsible for unimplemented instructions and other software * exceptions. Not responsible for hardware interrupts. Currently, @@ -182,7 +182,7 @@ _Exception_Handler: addi gp, gp, %lo(_gp) /* - * Pass a pointer to the stack frame as the input argument of the + * Pass a pointer to the stack frame as the input argument of the * exception handler (CPU_Exception_frame *). */ @@ -198,8 +198,8 @@ _Exception_Handler: stuck_in_exception: br stuck_in_exception - /* - * Restore the saved registers, so that all general purpose registers + /* + * Restore the saved registers, so that all general purpose registers * have been restored to their state at the time the interrupt occured. */ @@ -252,13 +252,13 @@ stuck_in_exception: _ISR_Handler: - /* - * Process an external hardware interrupt. + /* + * Process an external hardware interrupt. * - * First, preserve all callee saved registers on + * First, preserve all callee saved registers on * the stack. (See the Nios2 ABI documentation for details). * - * Do we really need to save all? + * Do we really need to save all? * * If this is interrupting a task (and not another interrupt), * everything is saved into the task's stack, thus putting us @@ -331,13 +331,13 @@ _ISR_Handler: .extern __ISR_Handler call __ISR_Handler - /* + /* * Now that the interrupt processing is complete, prepare to return to * the interrupted code. */ /* - * Restore the saved registers, so that all general purpose registers + * Restore the saved registers, so that all general purpose registers * have been restored to their state at the time the interrupt occured. */ diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index 0bdc44a3fd..c4e113e783 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -13,7 +13,7 @@ * * + Anywhere there is an XXX, it should be replaced * with information about the CPU family being ported to. - * + * * + At the end of each comment section, there is a heading which * says "Port Specific Information:". When porting to RTEMS, * add CPU family specific information in this section @@ -168,7 +168,7 @@ extern "C" { /** * Does the RTEMS invoke the user's ISR with the vector number and - * a pointer to the saved interrupt frame (1) or just the vector + * a pointer to the saved interrupt frame (1) or just the vector * number (0)? * * Port Specific Information: @@ -194,7 +194,7 @@ extern "C" { * an i387 and wish to leave floating point support out of RTEMS. */ -/** +/** * @def CPU_SOFTWARE_FP * * Does the CPU have no hardware floating point and GCC provides a @@ -202,7 +202,7 @@ extern "C" { * switched? * * This feature conditional is used to indicate whether or not there - * is software implemented floating point that must be context + * is software implemented floating point that must be context * switched. The determination of whether or not this applies * is very tool specific and the state saved/restored is also * compiler specific. @@ -519,7 +519,7 @@ typedef struct { /** * @ingroup CPUContext Management - * This defines the set of integer and processor state registers that are + * This defines the set of integer and processor state registers that are * saved during a software exception. */ typedef struct { @@ -592,14 +592,14 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; /** * @ingroup CPUInterrupt - * This variable points to the lowest physical address of the interrupt + * This variable points to the lowest physical address of the interrupt * stack. */ SCORE_EXTERN void *_CPU_Interrupt_stack_low; /** * @ingroup CPUInterrupt - * This variable points to the lowest physical address of the interrupt + * This variable points to the lowest physical address of the interrupt * stack. */ SCORE_EXTERN void *_CPU_Interrupt_stack_high; @@ -694,7 +694,7 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high; * * @note This does not have to be a power of 2 although it should be * a multiple of 2 greater than or equal to 2. The requirement - * to be a multiple of 2 is because the heap uses the least + * to be a multiple of 2 is because the heap uses the least * significant field of the front and back flags to indicate * that a block is in use or free. So you do not want any odd * length blocks really putting length data in that bit. @@ -990,7 +990,7 @@ uint32_t _CPU_ISR_Get_level( void ); /** * @defgroup CPUBitfield Processor Dependent Bitfield Manipulation * - * This set of routines are used to implement fast searches for + * This set of routines are used to implement fast searches for * the most important ready task. */ @@ -1015,7 +1015,7 @@ uint32_t _CPU_ISR_Get_level( void ); /** * @ingroup CPUBitfield * This routine sets @a _output to the bit number of the first bit - * set in @a _value. @a _value is of CPU dependent type + * set in @a _value. @a _value is of CPU dependent type * @a Priority_Bit_map_control. This type may be either 16 or 32 bits * wide although only the 16 least significant bits will be used. * @@ -1058,14 +1058,14 @@ uint32_t _CPU_ISR_Get_level( void ); if _value > 0x00ff _value >>=8 _number = 8; - + if _value > 0x0000f _value >=8 _number += 4 - + _number += bit_set_table[ _value ] @endverbatim - + * where bit_set_table[ 16 ] has values which indicate the first * bit set * @@ -1137,7 +1137,7 @@ void _CPU_Initialize(void); /** * @ingroup CPUInterrupt - * This routine installs a "raw" interrupt handler directly into the + * This routine installs a "raw" interrupt handler directly into the * processor's vector table. * * @param vector (in) is the vector number @@ -1299,12 +1299,12 @@ static inline uint32_t CPU_swap_u32( ) { uint32_t byte1, byte2, byte3, byte4, swapped; - + byte4 = (value >> 24) & 0xff; byte3 = (value >> 16) & 0xff; byte2 = (value >> 8) & 0xff; byte1 = value & 0xff; - + swapped = (byte1 << 24) | (byte2 << 16) | (byte3 << 8) | byte4; return( swapped ); } diff --git a/cpukit/score/cpu/nios2/rtems/score/nios2.h b/cpukit/score/cpu/nios2/rtems/score/nios2.h index abd52cad5c..f35eebbe8e 100644 --- a/cpukit/score/cpu/nios2/rtems/score/nios2.h +++ b/cpukit/score/cpu/nios2/rtems/score/nios2.h @@ -1,6 +1,6 @@ /* nios2.h * - * This file sets up basic CPU dependency settings based on + * This file sets up basic CPU dependency settings based on * compiler settings. For example, it can determine if * floating point is available. This particular implementation * is specific to the NIOS2 port. @@ -35,7 +35,7 @@ extern "C" { * that this port supports and which RTEMS CPU model they correspond * to. */ - + /* * Define the name of the CPU family and specific model. */ @@ -45,7 +45,7 @@ extern "C" { /* * See also nios2-rtems-gcc -print-multi-lib for all valid combinations of - * + * * -mno-hw-mul * -mhw-mulx * -mstack-check diff --git a/cpukit/score/cpu/nios2/rtems/score/types.h b/cpukit/score/cpu/nios2/rtems/score/types.h index c62940e38d..3795195929 100644 --- a/cpukit/score/cpu/nios2/rtems/score/types.h +++ b/cpukit/score/cpu/nios2/rtems/score/types.h @@ -3,7 +3,7 @@ */ /* - * This include file contains type definitions pertaining to the + * This include file contains type definitions pertaining to the * Altera Nios II processor family. * * COPYRIGHT (c) 1989-1999. |