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

tsar_generic_leti, tsar_boot: used USE_IOC_RDK instead of USE_RAMDISK

  • This is the name of the constant generated by the genmap tool into the hard_config.h file.
  • Instantiating the block device in the arch.py file only when the ramdisk is not used (GIET-VM supports only one IO controller)
Location:
trunk/platforms/tsar_generic_leti
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_leti/arch.py

    r793 r796  
    159159    ###  external peripherals (accessible in cluster[0,0] only for this mapping)
    160160
    161     bdv = mapping.addPeriph( 'BDV', base = bdv_base, size = bdv_size,
    162                              ptype = 'IOC', subtype = 'BDV' )
     161    if not use_ramdisk:
     162        bdv = mapping.addPeriph( 'BDV', base = bdv_base, size = bdv_size,
     163                                 ptype = 'IOC', subtype = 'BDV' )
    163164
    164165    tty = mapping.addPeriph( 'TTY', base = tty_base, size = tty_size,
     
    226227    ### global vsegs for external peripherals / identity mapping
    227228
    228     mapping.addGlobal( 'seg_bdv', bdv_base, bdv_size, '__W_',
    229                        vtype = 'PERI', x = 0, y = 0, pseg = 'BDV',
    230                        identity = True )
     229    if not use_ramdisk:
     230        mapping.addGlobal( 'seg_bdv', bdv_base, bdv_size, '__W_',
     231                           vtype = 'PERI', x = 0, y = 0, pseg = 'BDV',
     232                           identity = True )
    231233
    232234    mapping.addGlobal( 'seg_tty', tty_base, tty_size, '__W_',
  • trunk/platforms/tsar_generic_leti/top.cpp

    r795 r796  
    601601   ////////////////////////////
    602602
    603 #if USE_RAMDISK
     603#if USE_IOC_RDK
    604604   std::ostringstream ramdisk_name;
    605605   ramdisk_name << disk_name << "@" << std::hex << SEG_RDK_BASE << ":";
Note: See TracChangeset for help on using the changeset viewer.