u-boot-brain/arch
Gabor Juhos f321b0f99f MIPS: start.S: set sp register directly
The current code uses two instructions to load
the stack pointer into the 'sp' register.

This results in the following assembly code:

    468:   3c088040        lui     t0,0x8040
    46c:   251d0000        addiu   sp,t0,0

The first instuction loads the stack pointer into
the 't0' register then the value of the 'sp' register
is computed by adding zero to the value of the 't0'
register. The same issue present on the 64-bit version
as well:

    56c:   3c0c8040        lui     t0,0x8040
    570:   659d0000        daddiu  sp,t0,0

Change the code to load the stack pointer directly
into the 'sp' register. The generated code is functionally
equivalent to the previous version but it is simpler.

  32-bit:
    468:   3c1d8040        lui     sp,0x8040

  64-bit:
    56c:   3c1d8040        lui     sp,0x8040

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
2013-01-27 16:39:51 +01:00
..
arm pxa: Save lr register in relocate_code function 2013-01-14 16:22:00 -07:00
avr32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
blackfin common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
m68k m68k/lib: fix serial driver relocation 2013-01-11 14:41:14 -07:00
microblaze env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
mips MIPS: start.S: set sp register directly 2013-01-27 16:39:51 +01:00
nds32 common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
nios2 nios2: remove asm/status_led.h 2012-11-10 19:45:58 +08:00
openrisc openrisc: Change bi_baudrate and global data baudrate to int 2012-10-19 15:25:45 -07:00
powerpc env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
sandbox common: Discard the __u_boot_cmd section 2012-10-22 08:29:42 -07:00
sh sh: add support for sh7752evb board 2012-12-20 13:20:17 +09:00
sparc env: Use getenv_yesno() more generally 2012-12-13 11:46:55 -07:00
x86 x86: Build vga video code only if CONFIG_VIDEO_VGA is defined 2012-12-06 14:30:44 -08:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00