Skip to content
Snippets Groups Projects
Commit f34024d4 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Fix memory corruption problem on STX GP3 SSA Board.


Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 38ad82da
Branches
Tags
No related merge requests found
...@@ -381,9 +381,11 @@ static struct pci_config_table pci_stxgp3_config_table[] = { ...@@ -381,9 +381,11 @@ static struct pci_config_table pci_stxgp3_config_table[] = {
static struct pci_controller hose[] = { static struct pci_controller hose[] = {
#ifndef CONFIG_PCI_PNP #ifndef CONFIG_PCI_PNP
{ config_table: pci_stxgp3_config_table,}, { config_table: pci_stxgp3_config_table,},
#ifdef CONFIG_MPC85XX_PCI2 #else
{}, {},
#endif #endif
#ifdef CONFIG_MPC85XX_PCI2
{},
#endif #endif
}; };
......
...@@ -145,6 +145,7 @@ SECTIONS ...@@ -145,6 +145,7 @@ SECTIONS
. = ALIGN(256); . = ALIGN(256);
__init_end = .; __init_end = .;
. = .;
__bss_start = .; __bss_start = .;
.bss : .bss :
{ {
......
...@@ -541,11 +541,11 @@ restart: ...@@ -541,11 +541,11 @@ restart:
case NETLOOP_SUCCESS: case NETLOOP_SUCCESS:
if (NetBootFileXferSize > 0) { if (NetBootFileXferSize > 0) {
char buf[10]; char buf[20];
printf("Bytes transferred = %ld (%lx hex)\n", printf("Bytes transferred = %ld (%lx hex)\n",
NetBootFileXferSize, NetBootFileXferSize,
NetBootFileXferSize); NetBootFileXferSize);
sprintf(buf, "%lx", NetBootFileXferSize); sprintf(buf, "%lX", NetBootFileXferSize);
setenv("filesize", buf); setenv("filesize", buf);
sprintf(buf, "%lX", (unsigned long)load_addr); sprintf(buf, "%lX", (unsigned long)load_addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment