Browse Source

Fix memory corruption problem on STX GP3 SSA Board.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 17 years ago
parent
commit
f34024d4a3
3 changed files with 6 additions and 3 deletions
  1. 3 1
      board/stxssa/stxssa.c
  2. 1 0
      board/stxssa/u-boot.lds
  3. 2 2
      net/net.c

+ 3 - 1
board/stxssa/stxssa.c

@@ -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
 };
 

+ 1 - 0
board/stxssa/u-boot.lds

@@ -145,6 +145,7 @@ SECTIONS
   . = ALIGN(256);
   __init_end = .;
 
+  . = .;
   __bss_start = .;
   .bss       :
   {

+ 2 - 2
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);