|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed Mar 28 07:37:34 CEST 2007
Subject: [cvs-checkins] MODIFIED: mlite ...
Date: 00/07/03 28:07:37 Modified: mlite/tools boot.asm Log: Use linker values _gp, __bss_start, _end, and InitStack Revision Changes Path 1.12 mlite/tools/boot.asm http://www.opencores.org/cvsweb.shtml/mlite/tools/boot.asm.diff?r1=1.11&r2=1.12 (In the diff below, changes in quantity of whitespace are not shown.) Index: boot.asm =================================================================== RCS file: /cvsroot/rhoads/mlite/tools/boot.asm,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- boot.asm 14 Feb 2007 19:00:06 -0000 1.11 +++ boot.asm 28 Mar 2007 05:37:33 -0000 1.12 @@ -16,16 +16,12 @@ entry: .set noreorder - #These eight instructions must be the first instructions. - #convert.exe will correctly initialize $gp, .sbss_start, .bss_end, $sp - lui $gp, 0 - ori $gp, $gp, 0 #initialize $gp - lui $4, 0 - ori $4, $4, 0 #$4 = .sbss_start - lui $5, 0 - ori $5, $5, 0 #$5 = .bss_end - lui $sp, 0 - ori $sp, $sp, 0xfff0 #initialize stack pointer + #These eight instructions should be the first instructions. + #convert.exe previously initialized $gp, .sbss_start, .bss_end, $sp + la $gp, _gp #initialize stack pointer + la $4, __bss_start #$4 = .sbss_start + la $5, _end #$5 = .bss_end + la $sp, InitStack+488 #initialize stack pointer $BSS_CLEAR: sw $0, 0($4) @@ -51,6 +47,7 @@ #Registers $26 and $27 are reserved for the OS #Save all temporary registers + #Slots 0($29) through 12($29) reserved for saving a0-a3 addi $29, $29, -104 #adjust sp sw $1, 16($29) #at sw $2, 20($29) #v0
|
 |