A question about "Initialize GOT pointer"
hi,all:
here is a question, who can tell me? thanks.
?
in uboot file : cpu/mips/start.S
?
/* Initialize GOT pointer.?*/
??????? bal???? 1f
??????? nop
??????? .word?? _GLOBAL_OFFSET_TABLE_
??????? 1:
??????? move??? gp, ra
??????? lw????? t1, 0(ra)
??????? move??? gp, t1
?
I do't know why code "move??? gp, ra"? needed? ?what happened if we remove these code? ?
?
?
?
?
___________________________________________________________
?????????????????
http://card.mail.cn.yahoo.com/
I am not familiar with mips instruction.but i think it mean:
pg=ra
t1=0(ra)
then move t1 to gp.
so u cannot remove it .
2009/10/26 XR SU <[email protected]>
Quoted 33 lines
hi,all:
here is a question, who can tell me? thanks.in uboot file :
cpu/mips/start.S/* Initialize GOT pointer. */
bal 1f
nop
.word _GLOBAL_OFFSET_TABLE_
1:
move gp, ra
lw t1, 0(ra)
move gp, t1I do't know why code "move gp, ra" needed? what happened if we remove
these code?___________________________________________________________?????????????????
http://card.mail.cn.yahoo.com/_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 1 line
JUST DO IT,NOTHING IS IMPOSSIBLE
Quoted 14 lines · XR SU
hi,all:
here is a question, who can tell me? thanks.in uboot file :
cpu/mips/start.S/* Initialize GOT pointer.?*/
??????? bal???? 1f
??????? nop
??????? .word?? _GLOBAL_OFFSET_TABLE_
??????? 1:
??????? move??? gp, ra
??????? lw????? t1, 0(ra)
??????? move??? gp, t1
Quoted 1 line
I do't know why code "move??? gp, ra"? needed? ?what happened if we remove these code?
You're using old code. That was fixed about two years ago.
See http://git.denx.de/?p=u-boot.git;a=commitdiff;h=16664f72850846e645616da1c0fa5afcd6d15f15
Sorry,i thought the code is like this(intel asm):
mov ax, 40h
mov ds, ax
ax as an temp registor
2009/10/26 Andrew Dyer <[email protected]>
Quoted 27 lines · XR SU
Quoted 14 lines
hi,all:
here is a question, who can tell me? thanks.in uboot file :
cpu/mips/start.S/* Initialize GOT pointer. */
bal 1f
nop
.word _GLOBAL_OFFSET_TABLE_
1:
move gp, ra
lw t1, 0(ra)
move gp, t1Quoted 1 line
I do't know why code "move gp, ra" needed? what happened if we
remove these code?
You're using old code. That was fixed about two years ago.
See
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=16664f72850846e645616da1c0fa5afcd6d15f15
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 1 line
JUST DO IT,NOTHING IS IMPOSSIBLE