summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/sh/sh7750/score
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7750/score')
-rw-r--r--c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c22
-rw-r--r--c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c22
2 files changed, 22 insertions, 22 deletions
diff --git a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
index a541ab471c..574efd6f40 100644
--- a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
+++ b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
@@ -13,7 +13,7 @@
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
+ *
*
* COPYRIGHT (c) 1998.
* On-Line Applications Research Corporation (OAR).
@@ -48,7 +48,7 @@ extern proc_ptr _Hardware_isr_Table[];
unsigned long *_old_stack_ptr;
#endif
-register unsigned long *stack_ptr asm("r15");
+register unsigned long *stack_ptr asm("r15");
/*
* _CPU_Context_save_fp_context
@@ -68,7 +68,7 @@ void _CPU_Context_save_fp(
)
{
#if SH_HAS_FPU
-
+
asm volatile("\n\
mov.l @%0,r4 \n\
add %1,r4\n\
@@ -95,12 +95,12 @@ asm volatile("\n\
fmov xd4,@-r4\n\
fmov xd2,@-r4\n\
fmov xd0,@-r4\n\
- "
+ "
#endif
"lds %4,fpscr\n\
"
- :
- : "r"(fp_context_ptr), "r"(sizeof(Context_Control_fp)),
+ :
+ : "r"(fp_context_ptr), "r"(sizeof(Context_Control_fp)),
"r"(SH4_FPSCR_SZ), "r"(SH4_FPSCR_PR | SH4_FPSCR_SZ), "r"(SH4_FPSCR_PR)
: "r4", "r0");
@@ -154,7 +154,7 @@ asm volatile("\n\
fmov @r4+,dr14\n\
lds.l @r4+,fpul\n\
lds.l @r4+,fpscr\n\
- " :
+ " :
: "r"(fp_context_ptr), "r"(SH4_FPSCR_PR | SH4_FPSCR_SZ), "r"(SH4_FPSCR_SZ)
: "r4", "r0");
@@ -182,7 +182,7 @@ asm volatile("\n\
*/
/*
- * FIXME: This is an ugly hack, but we wanted to avoid recalculating
+ * FIXME: This is an ugly hack, but we wanted to avoid recalculating
* the offset each time Context_Control is changed
*/
void __CPU_Context_switch(
@@ -250,10 +250,10 @@ __CPU_Context_restore:\n\
nop" );
}
-/*
+/*
* This routine provides the RTEMS interrupt management.
*/
-
+
void __ISR_Handler( uint32_t vector)
{
register uint32_t level;
@@ -290,7 +290,7 @@ void __ISR_Handler( uint32_t vector)
if( _ISR_Nest_level == 0 )
/* restore old stack pointer */
- stack_ptr = _old_stack_ptr;
+ stack_ptr = _old_stack_ptr;
#endif
_CPU_ISR_Enable( level );
diff --git a/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c b/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c
index 322c1ba75a..e793483a5e 100644
--- a/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c
+++ b/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c
@@ -13,7 +13,7 @@
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
- *
+ *
*
* COPYRIGHT (c) 1998.
* On-Line Applications Research Corporation (OAR).
@@ -117,7 +117,7 @@ asm (" .text\n"
" .long __VBR_Saved\n"
"offset100_k:\n"
" .long 0x100\n"
-
+
" .org __vbr_base + 0x400\n"
"vbr_400:\n"
" mov.l r0,@-r15\n"
@@ -155,7 +155,7 @@ asm (" .text\n"
" mov.l r5,@-r15 \n"
" mov.l r6,@-r15 \n"
" mov.l r7,@-r15 \n"
-#if 0
+#if 0
" mov.l r8,@-r15 \n"
" mov.l r9,@-r15 \n"
" mov.l r10,@-r15 \n"
@@ -184,7 +184,7 @@ asm (" .text\n"
" fmov fr13,@-r15 \n"
" fmov fr14,@-r15 \n"
" fmov fr15,@-r15 \n"
-
+
" sts.l pr,@-r15 \n"
" sts.l mach,@-r15 \n"
" sts.l macl,@-r15 \n"
@@ -200,7 +200,7 @@ asm (" .text\n"
" mov.l @r4,r4 \n"
" shlr2 r4 \n"
" shlr r4 \n"
-
+
" mov.l _ISR_Table_k,r0\n"
" mov.l @r0,r0 \n"
" add r4,r0 \n"
@@ -247,7 +247,7 @@ asm (" .text\n"
" mov.l @r15+,r9 \n"
" mov.l @r15+,r8 \n"
#endif
-
+
" mov.l @r15+,r7 \n"
" mov.l @r15+,r6 \n"
" mov.l @r15+,r5 \n"
@@ -298,15 +298,15 @@ asm (" .text\n"
" lds.l @r15+,fpul \n"
" lds.l @r15+,fpscr\n"
" mov.l @r15+,r14 \n"
-
+
" mov.l @r15+,r13 \n"
" mov.l @r15+,r12 \n"
" mov.l @r15+,r11 \n"
" mov.l @r15+,r10 \n"
" mov.l @r15+,r9 \n"
" mov.l @r15+,r8 \n"
-
-
+
+
" mov.l @r15+,r7 \n"
" mov.l @r15+,r6 \n"
" mov.l @r15+,r5 \n"
@@ -329,10 +329,10 @@ asm (" .text\n"
" .long 0x600\n"
);
-
+
/************************************************
- * Dummy interrupt service procedure for
+ * Dummy interrupt service procedure for
* interrupts being not allowed --> Trap 2
************************************************/
asm(" .section .text\n\