Changeset 30438


Ignore:
Timestamp:
2012-02-11T16:11:45+01:00 (5 years ago)
Author:
juhosg
Message:

ramips: use uncached address in detect_mem_size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/ralink/common/setup.c

    r26327 r30438  
    3232{ 
    3333        unsigned long size; 
     34        void *base; 
    3435 
     36        base = (void *) KSEG1ADDR(detect_mem_size); 
    3537        for (size = RALINK_SOC_MEM_SIZE_MIN; size < RALINK_SOC_MEM_SIZE_MAX; 
    3638             size <<= 1 ) { 
    37                 if (!memcmp(detect_mem_size, 
    38                             detect_mem_size + size, 1024)) 
     39                if (!memcmp(base, base + size, 1024)) 
    3940                        break; 
    4041        } 
Note: See TracChangeset for help on using the changeset viewer.