Changeset 1124 for trunk/core/main.c


Ignore:
Timestamp:
04/03/11 01:06:55 (2 years ago)
Author:
reyalP
Message:

exmem improvements, experimental support for loading CHDK binary in exmem - from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg63808#msg63808

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/main.c

    r1119 r1124  
    5151 
    5252int core_get_free_memory() { 
    53     int size, l_size, d; 
     53#if defined(OPT_EXMEM_MALLOC) && !defined(OPT_EXMEM_TESTING) 
     54        // If using the exmem / suba memory allocation system then don't need 
     55        // to try allocating memory to find out how much is available 
     56        // Call function to scan free list for the largest free block available. 
     57        extern int exmem_largest_block(); 
     58        return exmem_largest_block(); 
     59#else 
     60        int size, l_size, d; 
    5461    char* ptr; 
    5562 
     
    8491    } 
    8592    return size-1; 
     93#endif 
    8694} 
    8795 
Note: See TracChangeset for help on using the changeset viewer.