Ignore:
Timestamp:
Aug 21, 2012, 9:30:46 AM (12 years ago)
Author:
karaoui
Message:

Avoid incremmentinting Pseg of "PERI" type, to permit multiple mapping.

Location:
soft/giet_vm/memo/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/memo/include/memo.h

    r187 r210  
    2525 *
    2626 */
    27 #ifndef SOCLIB_VLOADER_H_
    28 #define SOCLIB_VLOADER_H_
     27#ifndef _MEMO_H_
     28#define _MEMO_H_
    2929
    3030#include  <stdlib.h>
     
    5050
    5151#include "stdint.h"
     52#include "mapping_info.h"
    5253#include "pseg_handler.h"
    5354#include "path_handler.h"
    54 
    5555
    5656
     
    109109
    110110
    111 #endif /* SOCLIB_VLOADER_H_ */
     111#endif /* _MEMO_H_ */
    112112
    113113// Local Variables:
  • soft/giet_vm/memo/include/pseg.h

    r163 r210  
    3434
    3535#include "stdint.h"
     36#include "mapping_info.h"
    3637
    3738
     
    4950    uintptr_t m_lma;   //Physical address to which we load the seg (getted from the associated PSeg), setted by PSeg::add/addIdent.
    5051    size_t m_length;
     52    size_t m_type;
    5153    bool m_loadable;     // wether this is a loadable vseg ( code, data...)
    5254
     
    5961    uintptr_t lma() const;
    6062    size_t length() const;
     63    size_t type() const;
    6164    //void add( VObj& vobj );//add a VObj
    6265
     
    8386    uintptr_t m_lma;
    8487    size_t m_length;
     88    size_t m_type;
    8589
    8690    uintptr_t m_pageLimit;  //The end (m_lma + m_length)  address of the segment pageSize aligned
     
    97101    uintptr_t lma() const;
    98102    size_t length() const;
     103    size_t type() const;
    99104    uintptr_t limit() const;
    100105    uintptr_t nextLma() const;
     
    132137    PSeg( const std::string &name,
    133138                     uintptr_t lma,
    134              size_t length);
     139             size_t length,
     140             size_t type);
    135141    ~PSeg();
    136142};
Note: See TracChangeset for help on using the changeset viewer.