
16 Oct
2006
16 Oct
'06
6:09 p.m.
Vladimir "Farcaller" Pouzanov wrote:
Is it ok that TEXT_BASE of 0x0 leads to crash? Also U-boot seems to follow TEXT_BASE value after relocation:
Now I'm completely confused...
CFG_MONITOR_BASE is u-boot startting location before relocation? CFG_FLASH_BASE is the same? TEXT_BASE is... hm... (same as both constants above) 0x0? Doesn't work. And shouldn't work: adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ cmp r0, r1 /* don't reloc during debug */ beq stack_setup _start == 0 so is _TEXT_BASE, result = no relocation and crash....
Please help :(
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://hackndev.com