diff options
author | Michal Simek <monstr@monstr.eu> | 2011-08-30 15:22:24 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-10-03 08:01:56 +0200 |
commit | 5562bcc241e12a00344b5a08855bab27a6167538 (patch) | |
tree | eb29de8ee64da4bd3bdd0c3df9f29d9ddd21587f /arch/microblaze/cpu | |
parent | f3090fce77202a867ae23d0df91a2b54ed9ee6e4 (diff) | |
download | u-boot-imx-5562bcc241e12a00344b5a08855bab27a6167538.zip u-boot-imx-5562bcc241e12a00344b5a08855bab27a6167538.tar.gz u-boot-imx-5562bcc241e12a00344b5a08855bab27a6167538.tar.bz2 |
microblaze: Clean up reset asm code
- Remove code copying
- Reset address is setup from first stage bootloader
- Support reset vector setup on little endian
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/cpu')
-rw-r--r-- | arch/microblaze/cpu/start.S | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index 42104fa..9077f74 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -67,26 +67,11 @@ _start: addik r6, r0, CONFIG_SYS_RESET_ADDRESS sw r6, r1, r0 - lhu r7, r1, r0 - shi r7, r0, 0x2 - shi r6, r0, 0x6 -/* - * Copy U-Boot code to CONFIG_SYS_TEXT_BASE - * solve problem with sbrk_base - */ -#if (CONFIG_SYS_RESET_ADDRESS != CONFIG_SYS_TEXT_BASE) - addi r4, r0, __end - addi r5, r0, __text_start - rsub r4, r5, r4 /* size = __end - __text_start */ - addi r6, r0, CONFIG_SYS_RESET_ADDRESS /* source address */ - addi r7, r0, 0 /* counter */ -4: - lw r8, r6, r7 - sw r8, r5, r7 - addi r7, r7, 0x4 - cmp r8, r4, r7 - blti r8, 4b -#endif + lhu r7, r1, r10 + rsubi r8, r10, 0x2 + sh r7, r0, r8 + rsubi r8, r10, 0x6 + sh r6, r0, r8 #endif #ifdef CONFIG_SYS_USR_EXCEP |