Changeset 405 for soft/giet_vm/giet_drivers/rdk_driver.c
- Timestamp:
- Sep 9, 2014, 3:26:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/rdk_driver.c
r320 r405 62 62 #endif 63 63 64 #if USE_ RAM_DISK64 #if USE_IOC_RDK 65 65 char* src = (char*)SEG_RDK_BASE + (512*lba); 66 66 char* dst = (char*)buffer; 67 _memcpy( dst, src, count*512 );67 memcpy( dst, src, count*512 ); 68 68 return 0; 69 69 #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"); 71 71 return 1; 72 72 #endif … … 95 95 #endif 96 96 97 #if USE_ RAM_DISK97 #if USE_IOC_RDK 98 98 char* dst = (char*)SEG_RDK_BASE + (512*lba); 99 99 char* src = (char*)buffer; 100 _memcpy( dst, src, count*512 );100 memcpy( dst, src, count*512 ); 101 101 return 0; 102 102 #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"); 104 104 return 1; 105 105 #endif
Note: See TracChangeset
for help on using the changeset viewer.