summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/genmcf548x/start
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 14:59:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 14:59:41 +0000
commitd4b4664b99044b888bc178bdbd870edd4404b710 (patch)
tree59d216d0cd5a964ea9b4a4f965d994865f479f7c /c/src/lib/libbsp/m68k/genmcf548x/start
parentWhitespace removal. (diff)
downloadrtems-d4b4664b99044b888bc178bdbd870edd4404b710.tar.bz2
Whitespace removal.
Diffstat (limited to 'c/src/lib/libbsp/m68k/genmcf548x/start')
-rw-r--r--c/src/lib/libbsp/m68k/genmcf548x/start/start.S52
1 files changed, 26 insertions, 26 deletions
diff --git a/c/src/lib/libbsp/m68k/genmcf548x/start/start.S b/c/src/lib/libbsp/m68k/genmcf548x/start/start.S
index 190139084f..bbfbef9615 100644
--- a/c/src/lib/libbsp/m68k/genmcf548x/start/start.S
+++ b/c/src/lib/libbsp/m68k/genmcf548x/start/start.S
@@ -55,7 +55,7 @@
.extern _CoreSramBase0
.extern _CoreSramBase1
.extern _CoreSramSize1
-.extern mcf548x_init
+.extern mcf548x_init
.extern boot_card
.extern _SpInit
@@ -64,7 +64,7 @@
\*===============================================================*/
.global interrupt_vector_table
-.global spurious_int_count
+.global spurious_int_count
.global start
@@ -339,13 +339,13 @@ PUBLIC (start)
SYM(start):
move.w #0x3700,sr /* disable interrupts */
jmp start_init
-
+
/*===============================================================*\
| Sspurious interrupt counter |
\*===============================================================*/
.align 4
.data /* begin of data section */
-PUBLIC (spurious_int_count)
+PUBLIC (spurious_int_count)
SYM(spurious_int_count):
.long 0 /* spurious interrupt counter */
@@ -353,14 +353,14 @@ SYM(spurious_int_count):
| Function: Default exception handler |
+-----------------------------------------------------------------+
| - stop and disable all interrupts |
-| - loop forever |
+| - loop forever |
\*===============================================================*/
.text /* start of text section */
.align 4
PUBLIC (asm_default_interrupt)
SYM(asm_default_interrupt):
- nop
- stop #0x3700 /* stop */
+ nop
+ stop #0x3700 /* stop */
bra.w asm_default_interrupt /* loop forever */
/*===============================================================*\
@@ -372,49 +372,49 @@ SYM(asm_default_interrupt):
PUBLIC (asm_spurious_interrupt)
SYM(asm_spurious_interrupt):
add.l #1,spurious_int_count
- rte
-
+ rte
+
/*===============================================================*\
| Function: start_init |
+-----------------------------------------------------------------+
-| - Disable all intterupts |
+| - Disable all intterupts |
| - Setup the internal SRAM |
| - Initialize mcf548x peripherals |
| - Set initial stack pointer |
-| - Boot RTEMS
+| - Boot RTEMS
\*===============================================================*/
.align 4
PUBLIC (start_init)
SYM(start_init):
-
+
move.l #0x01040100,d0 /* invalidate instruction/data/branch cache, disable all caches */
movec d0,cacr
-
+
move.l #_CoreSramBase0,d0 /* initialize RAMBAR0 */
add.l #0x21,d0 /* for code & data */
movec d0,rambar0
-
+
move.l #_CoreSramBase1,d0 /* initialize RAMBAR1 */
add.l #0x21,d0 /* for code & data */
movec d0,rambar1 /* movec d0,RAMBAR1 */
move.l #__MBAR,d0 /* initialize MBAR */
movec d0,mbar
-
+
move.l #_CoreSramBase1,d0 /* set sp to end of Core SRAM temporarily */
add.l #_CoreSramSize1,d0
move.l d0,sp
-
+
move.l #0,d0 /* initialize frame pointer */
- movea.l d0,a6
-
+ movea.l d0,a6
+
jsr mcf548x_init /* Initialize mcf548x peripherals */
- move.l #_SpInit,sp /* relocate sp */
-
+ move.l #_SpInit,sp /* relocate sp */
+
clrl d0 /* clear d0 */
movel d0,a7@- /* command line == 0 */
-
+
jsr boot_card /* boot rtems */
movel a7@+,d0
@@ -422,10 +422,10 @@ SYM(start_init):
exit_multitasking:
nop
nop
- halt
- bra exit_multitasking
+ halt
+ bra exit_multitasking
+
+.end /* end of start.S module */
+
-.end /* end of start.S module */
-
-