[U-Boot] [PATCH v2] MIPS: start.S: unify and simplify reset vector handling

Gabor Juhos juhosg at openwrt.org
Sat Feb 2 01:44:44 CET 2013


2013.02.01. 23:48 keltezéssel, Daniel Schwierzeck írta:

>>> +     /* U-boot entry point */
>>> +     b       reset
>>> +      nop
>>> +
>>> +     .org 0x10
>>>  #ifdef CONFIG_SYS_XWAY_EBU_BOOTCFG
>>
>> The .org should be within the ifdef. Although it does not change the generated
>> binary code, but logically it would be a more correct place. Sorry, I should
>> have mentioned that in the previous mail.
>>
>> -Gabor
>>
>>
> 
> I think we should keep it outside. If we add qemu-malta, then we get
> another #if branch.

Ok, it does not really matter now. The .org can be moved into the ifdef later
when there will be a board which needs some other magic value at 0x14 for example.

> I also would like to move some register inits (watch, timer, status)
> to slightly reduce
> binary size.

Hm, do you want to initialize those registers between the reserved vectors?

-Gabor


More information about the U-Boot mailing list