@ -115,7 +115,7 @@ reset:
/* Clear watch registers */
MTC0 z e r o , C P 0 _ W A T C H L O
MTC 0 z e r o , C P 0 _ W A T C H H I
mtc 0 z e r o , C P 0 _ W A T C H H I
/* WP(Watch Pending), SW0/1 should be cleared */
mtc0 z e r o , C P 0 _ C A U S E
@ -161,14 +161,14 @@ reset:
# endif
/* Set up temporary stack */
PTR_ L I t 0 , - 1 6
li t 0 , - 1 6
PTR_ L I t 1 , C O N F I G _ S Y S _ I N I T _ S P _ A D D R
and s p , t 1 , t 0 # f o r c e 16 b y t e a l i g n m e n t
PTR_ S U B s p , s p , G D _ S I Z E # r e s e r v e s p a c e f o r g d
and s p , s p , t 0 # f o r c e 16 b y t e a l i g n m e n t
move k 0 , s p # s a v e g d p o i n t e r
# ifdef C O N F I G _ S Y S _ M A L L O C _ F _ L E N
PTR_ L I t 2 , C O N F I G _ S Y S _ M A L L O C _ F _ L E N
li t 2 , C O N F I G _ S Y S _ M A L L O C _ F _ L E N
PTR_ S U B s p , s p , t 2 # r e s e r v e s p a c e f o r e a r l y m a l l o c
and s p , s p , t 0 # f o r c e 16 b y t e a l i g n m e n t
# endif
@ -177,14 +177,14 @@ reset:
/* Clear gd */
move t 0 , k 0
1 :
sw z e r o , 0 ( t 0 )
PTR_ S z e r o , 0 ( t 0 )
blt t 0 , t 1 , 1 b
PTR_ A D D I t 0 , 4
PTR_ A D D I t 0 , P T R S I Z E
# ifdef C O N F I G _ S Y S _ M A L L O C _ F _ L E N
PTR_ A D D U t 0 , k 0 , G D _ M A L L O C _ B A S E # g d - > m a l l o c _ b a s e o f f s e t
sw s p , 0 ( t 0 )
PTR_ S s p , G D _ M A L L O C _ B A S E ( k 0 ) # g d - > m a l l o c _ b a s e o f f s e t
# endif
move a0 , z e r o # a 0 < - - b o o t _ f l a g s = 0
PTR_ L A t 9 , b o a r d _ i n i t _ f
jr t 9
@ -224,11 +224,11 @@ ENTRY(relocate_code)
* t2 = s o u r c e e n d a d d r e s s
* /
1 :
lw t 3 , 0 ( t 0 )
sw t 3 , 0 ( t 1 )
PTR_ A D D U t 0 , 4
PTR_ L t 3 , 0 ( t 0 )
PTR_ S t 3 , 0 ( t 1 )
PTR_ A D D U t 0 , P T R S I Z E
blt t 0 , t 2 , 1 b
PTR_ A D D U t 1 , 4
PTR_ A D D U t 1 , P T R S I Z E
/* If caches were enabled, we would have to flush them here. */
PTR_ S U B a1 , t 1 , s2 # a 1 < - - s i z e