Ignore:
Timestamp:
Sep 9, 2014, 3:26:47 PM (10 years ago)
Author:
cfuguet
Message:

rdk_driver: replacing old USE_RAM_DISK variables by USE_IOC_RDK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/rdk_driver.c

    r320 r405  
    6262#endif
    6363
    64 #if USE_RAM_DISK
     64#if USE_IOC_RDK
    6565    char* src = (char*)SEG_RDK_BASE + (512*lba);
    6666    char* dst = (char*)buffer;
    67     _memcpy( dst, src, count*512 );
     67    memcpy( dst, src, count*512 );
    6868    return 0;
    6969#else
    70     _printf("[GIET ERROR] _rdk_read() should not be used if USE_RAM_DISK not set\n");
     70    _printf("[GIET ERROR] _rdk_read() should not be used if USE_IOC_RDK not set\n");
    7171    return 1;
    7272#endif
     
    9595#endif
    9696
    97 #if USE_RAM_DISK
     97#if USE_IOC_RDK
    9898    char* dst = (char*)SEG_RDK_BASE + (512*lba);
    9999    char* src = (char*)buffer;
    100     _memcpy( dst, src, count*512 );
     100    memcpy( dst, src, count*512 );
    101101    return 0;
    102102#else
    103     _printf("[GIET ERROR] _rdk_write() should not be used if USE_RAM_DISK not set\n");
     103    _printf("[GIET ERROR] _rdk_write() should not be used if USE_IOC_RDK not set\n");
    104104    return 1;
    105105#endif
Note: See TracChangeset for help on using the changeset viewer.