Ignore:
Timestamp:
Jun 25, 2014, 2:19:37 PM (10 years ago)
Author:
cfuguet
Message:

giet_vm optimizations:

  • Several modifications in GIET_VM in order to support compilation with GCC optimizations (-O2) activated.
  • Adding missing volatile in some global variables.
  • Using ioread and iowrite utility functions in peripheral drivers which prevent GCC to remove writes or reads in hardware memory mapped registers.
  • Code refactoring of stdio printf functions. Now, shr_printf and tty_printf function reuse the same function body. The only difference is that shr_printf wraps printf function call with TTY get lock and release lock.
File:
1 edited

Legend:

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

    r320 r345  
    6464    char* fbf_address = (char *)SEG_FBF_BASE + offset;
    6565
    66     _memcpy( fbf_address, buffer, length);
     66    memcpy( fbf_address, buffer, length);
    6767
    6868    return 0;
     
    8181    char* fbf_address = (char *)SEG_FBF_BASE + offset;
    8282
    83     _memcpy( buffer, fbf_address, length);
     83    memcpy( buffer, fbf_address, length);
    8484
    8585    return 0;
Note: See TracChangeset for help on using the changeset viewer.