Project

General

Profile

Bug #126 » amd-sb800-ramtop.patch

Paul Menzel, 07/15/2017 06:41 AM

View differences:

src/southbridge/amd/cimx/sb800/ramtop.c
outb((dword >> (8 * i)) & 0xff, BIOSRAM_DATA);
nvram_pos++;
}
u32 xdata = 0;
int xnvram_pos = 0xf8, xi;
for (xi = 0; xi < 4; xi++) {
outb(xnvram_pos, BIOSRAM_INDEX);
xdata &= ~(0xff << (xi * 8));
xdata |= inb(BIOSRAM_DATA) << (xi *8);
xnvram_pos++;
}
printk(BIOS_DEBUG, "%s: %08x\n", __func__, xdata);
}
unsigned long get_top_of_ram(void)
......
xdata |= inb(BIOSRAM_DATA) << (xi *8);
xnvram_pos++;
}
printk(BIOS_DEBUG, "%s: %08x\n", __func__, xdata);
return (unsigned long) xdata;
}
(1-1/5)