]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix memory corruption problem on STX GP3 SSA Board.
authorWolfgang Denk <wd@denx.de>
Tue, 11 Sep 2007 22:48:57 +0000 (00:48 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 11 Sep 2007 22:48:57 +0000 (00:48 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
board/stxssa/stxssa.c
board/stxssa/u-boot.lds
net/net.c

index 9a2bfbef8e47e05cea28d720ab4bfbb5eb8391d9..9bacb98d86589a8f02b24c8474179a60f6278be9 100644 (file)
@@ -381,9 +381,11 @@ static struct pci_config_table pci_stxgp3_config_table[] = {
 static struct pci_controller hose[] = {
 #ifndef CONFIG_PCI_PNP
        { config_table: pci_stxgp3_config_table,},
-#ifdef CONFIG_MPC85XX_PCI2
+#else
        {},
 #endif
+#ifdef CONFIG_MPC85XX_PCI2
+       {},
 #endif
 };
 
index 95ecf66a8d142e6731b15b15b98304e24a63a236..65e1bcfb122b03f07ed3203bb5f3e00d17df2351 100644 (file)
@@ -145,6 +145,7 @@ SECTIONS
   . = ALIGN(256);
   __init_end = .;
 
+  . = .;
   __bss_start = .;
   .bss       :
   {
index c47610e74554cea5d693830019602dd56cd2f061..cde26801b385b8e29a4e44a5e147514d4112c088 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -541,11 +541,11 @@ restart:
 
                case NETLOOP_SUCCESS:
                        if (NetBootFileXferSize > 0) {
-                               char buf[10];
+                               char buf[20];
                                printf("Bytes transferred = %ld (%lx hex)\n",
                                        NetBootFileXferSize,
                                        NetBootFileXferSize);
-                               sprintf(buf, "%lx", NetBootFileXferSize);
+                               sprintf(buf, "%lX", NetBootFileXferSize);
                                setenv("filesize", buf);
 
                                sprintf(buf, "%lX", (unsigned long)load_addr);