1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:33:10 +02:00

ramips: use uncached address in detect_mem_size

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30438 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-02-11 15:11:45 +00:00
parent a88c8014e5
commit f9626b56d5

View File

@ -31,11 +31,12 @@ const char *get_system_type(void)
static void __init detect_mem_size(void)
{
unsigned long size;
void *base;
base = (void *) KSEG1ADDR(detect_mem_size);
for (size = RALINK_SOC_MEM_SIZE_MIN; size < RALINK_SOC_MEM_SIZE_MAX;
size <<= 1 ) {
if (!memcmp(detect_mem_size,
detect_mem_size + size, 1024))
if (!memcmp(base, base + size, 1024))
break;
}