projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.denx.de/u-boot
[oweals/u-boot.git]
/
arch
/
powerpc
/
cpu
/
mpc512x
/
start.S
diff --git
a/arch/powerpc/cpu/mpc512x/start.S
b/arch/powerpc/cpu/mpc512x/start.S
index d52cc4da1ba814f5229f920101fccacb22556941..ed362d87aa440ee04b2c9cb347fde923ccbcd5f8 100644
(file)
--- a/
arch/powerpc/cpu/mpc512x/start.S
+++ b/
arch/powerpc/cpu/mpc512x/start.S
@@
-29,8
+29,11
@@
* U-Boot - Startup Code for MPC512x based Embedded Boards
*/
* U-Boot - Startup Code for MPC512x based Embedded Boards
*/
+#include <asm-offsets.h>
#include <config.h>
#include <config.h>
-#include <timestamp.h>
+#ifndef CONFIG_IDENT_STRING
+#define CONFIG_IDENT_STRING "MPC512X"
+#endif
#include <version.h>
#define CONFIG_521X 1 /* needed for Linux kernel header files*/
#include <version.h>
#define CONFIG_521X 1 /* needed for Linux kernel header files*/
@@
-45,10
+48,6
@@
#include <asm/mmu.h>
#include <asm/u-boot.h>
#include <asm/mmu.h>
#include <asm/u-boot.h>
-#ifndef CONFIG_IDENT_STRING
-#define CONFIG_IDENT_STRING "MPC512X"
-#endif
-
/*
* Floating Point enable, Machine Check and Recoverable Interr.
*/
/*
* Floating Point enable, Machine Check and Recoverable Interr.
*/
@@
-78,7
+77,7
@@
GOT_ENTRY(transfer_to_handler)
GOT_ENTRY(__init_end)
GOT_ENTRY(transfer_to_handler)
GOT_ENTRY(__init_end)
- GOT_ENTRY(_
end
)
+ GOT_ENTRY(_
_bss_end__
)
GOT_ENTRY(__bss_start)
END_GOT
GOT_ENTRY(__bss_start)
END_GOT
@@
-88,9
+87,7
@@
.long 0x27051956 /* U-Boot Magic Number */
.globl version_string
version_string:
.long 0x27051956 /* U-Boot Magic Number */
.globl version_string
version_string:
- .ascii U_BOOT_VERSION
- .ascii " (", U_BOOT_DATE, " - ", U_BOOT_TIME, ")"
- .ascii " ", CONFIG_IDENT_STRING, "\0"
+ .ascii U_BOOT_VERSION_STRING, "\0"
/*
* Vector Table
/*
* Vector Table
@@
-613,17
+610,19
@@
in_ram:
beq 4f
3: lwzu r4,4(r3)
lwzux r0,r4,r11
beq 4f
3: lwzu r4,4(r3)
lwzux r0,r4,r11
+ cmpwi r0,0
add r0,r0,r11
add r0,r0,r11
- stw r10,0(r3)
+ stw r4,0(r3)
+ beq- 5f
stw r0,0(r4)
stw r0,0(r4)
-
bdnz 3b
+
5:
bdnz 3b
4:
clear_bss:
/*
* Now clear BSS segment
*/
lwz r3,GOT(__bss_start)
4:
clear_bss:
/*
* Now clear BSS segment
*/
lwz r3,GOT(__bss_start)
- lwz r4,GOT(_
end
)
+ lwz r4,GOT(_
_bss_end__
)
cmplw 0, r3, r4
beq 6f
cmplw 0, r3, r4
beq 6f