Ignore:
Timestamp:
Sep 9, 2014, 3:05:49 PM (8 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)
File:
1 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_',
Note: See TracChangeset for help on using the changeset viewer.