summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/genmongoosev/start/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/mips/genmongoosev/start/start.S')
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/start/start.S49
1 files changed, 0 insertions, 49 deletions
diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/start.S b/c/src/lib/libbsp/mips/genmongoosev/start/start.S
index 5c997d7449..3861510259 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/start/start.S
+++ b/c/src/lib/libbsp/mips/genmongoosev/start/start.S
@@ -37,19 +37,15 @@
#define LANGUAGE_ASSEMBLY
#endif
-
#include <rtems/asm.h>
#include "regs.S"
#include "mg5.h"
-
-
#ifdef __mips16
/* This file contains 32 bit assembly code. */
.set nomips16
#endif
-
/*
** defined by linkcmds, pointing to the start of the relocation target
** memory, referenced in this way so we can avoid defining it
@@ -60,7 +56,6 @@
.text
.align 2
-
/**********************************************************************
**
** Function: _start
@@ -100,7 +95,6 @@ _branch:
mtc0 t0, C0_CAUSE
nop
-
/*
** Call cpuinit. Masking used to call EEPROM address of _cpuinit. Label is RAM label.
*/
@@ -123,8 +117,6 @@ _branch:
jal t0
nop
-
-
/*
** Print 'b'. Show that we started.
*/
@@ -137,10 +129,6 @@ _branch:
jal t0
nop
-
-
-
-
li k0,0
li k1,0
@@ -157,8 +145,6 @@ _branch:
srl t0,31 /* shift high bit down to bit 0 */
bnez t0,1f /* booting from above kseg1 */
-
-
/*
** Call IcacheFlush. Masking used to call EEPROM address of IcacheFlush. Label is RAM label.
*/
@@ -171,7 +157,6 @@ _branch:
jal t0
nop
-
/*
** Print 'I'. Show that we flushed I cache.
*/
@@ -184,7 +169,6 @@ _branch:
jal t0
nop
-
/*
** Call DcacheFlush. Masking used to call EEPROM address of DcacheFlush. Label is RAM label.
*/
@@ -196,7 +180,6 @@ _branch:
jal t0
nop
-
/*
** Print 'D'. Show that we flushed D cache.
*/
@@ -210,7 +193,6 @@ _branch:
jal t0
nop
-
1:
/*
** Print ' RTEMS b'. Show that we are booting.
@@ -287,7 +269,6 @@ _branch:
jal t0
nop
-
/*
** get the address of the _branch label above as it would appear in
** the relocated code
@@ -335,7 +316,6 @@ relocate:
nop
.end _start
-
/**********************************************************************
**
** Function: _start_in_ram
@@ -355,7 +335,6 @@ _start_in_ram:
la gp, _gp /* set the global data pointer */
.end _start_in_ram
-
/**********************************************************************
**
** Function: zerobss
@@ -405,7 +384,6 @@ zerobss:
.end zerobss
-
/**********************************************************************
**
** Function: _init
@@ -422,7 +400,6 @@ _initialize_rtems:
jal putch_rom
nop
-
/*
** Save the boot-time addresses of the I & D cache flush routines.
** Note, if we're running from RAM, we cannot manipulate the cache
@@ -447,7 +424,6 @@ _initialize_rtems:
nop
.end _initialize_rtems
-
/**********************************************************************
**
** Function: _sys_exit
@@ -461,8 +437,6 @@ _sys_exit:
jal t0
.end _sys_exit
-
-
/**********************************************************************
**
** function: putch
@@ -506,7 +480,6 @@ putch_rom:
j ra
.end putch_rom
-
/**********************************************************************
**
** function: config_uart
@@ -543,7 +516,6 @@ config_uart:
j ra
.end config_uart
-
/*************************************************************
* CpuInit:
* Perform CPU-specific initialization
@@ -670,7 +642,6 @@ _cpuinit:
li t0, 0x0
sw t0,M_SPEC2
-
/*
** SPEC3 Setup
** SPEC3 will be used for the SONIC ethernet controller.
@@ -797,14 +768,6 @@ _cpuinit:
j ra
.end _cpuinit
-
-
-
-
-
-
-
-
/**********************************************************************
**
** Keep the boot-time address of the I & D cache reset code for
@@ -816,8 +779,6 @@ _cpuinit:
_promIcache: .word 0
_promDcache: .word 0
-
-
.globl promCopyIcacheFlush
.ent promCopyIcacheFlush
.set noreorder
@@ -837,8 +798,6 @@ promCopyIcacheFlush:
.set reorder
.end promCopyIcacheFlush
-
-
.globl promCopyDcacheFlush
.ent promCopyDcacheFlush
.set noreorder
@@ -858,10 +817,6 @@ promCopyDcacheFlush:
.set reorder
.end promCopyDcacheFlush
-
-
-
-
/*******************************************************************************
** Function Name: IcacheFlush
** Description: This functions flushes the on chip icache.
@@ -900,7 +855,6 @@ icache_write:
bltu t8, t9, icache_write /* check to see if we are done */
nop
-
/*
** De-isolate I cache
*/
@@ -912,13 +866,11 @@ icache_write:
.set reorder
.end IcacheFlush
-
/********************************************************
** Function Name: DcacheFlush
** Description: This functions flushes the on chip dcache.
*/
-
.ent DcacheFlush
.set noreorder
DcacheFlush:
@@ -955,5 +907,4 @@ dcache_write:
.set reorder
.end DcacheFlush
-
/* EOF start.S */