Changeset 315 for trunk/kernel/mm/vseg.h


Ignore:
Timestamp:
Aug 3, 2017, 10:15:18 AM (7 years ago)
Author:
alain
Message:

Redefine the fuctions ppm_base2page() / ppm_page2base() / ppm_page2ppn() / ppm_ppn2page() / ppm_base2ppn() / ppm_ppn2base(),
to use explicitely extended pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/vseg.h

    r313 r315  
    8181        vpn_t             vpn_size;     /*! number of pages occupied                             */
    8282        uint32_t          flags;        /*! vseg attributes                                      */
    83         xptr_t            file_mapper;  /*! xptr on remote mapper (for types CODE / DATA / FILE) */
    84         intptr_t          file_offset;  /*! offset in file (for types CODE / DATA / FILE)        */
    85     intptr_t          file_size;    /*! max segment size in mapper (for type DATA)           */
    86     cxy_t             cxy;          /*! cluster for physical mapping (for non distributed)   */
     83        xptr_t            mapper_xp;    /*! xptr on remote mapper (for types CODE / DATA / FILE) */
     84        intptr_t          file_offset;  /*! vseg offset in file (for types CODE/DATA)            */
     85    intptr_t          file_size;    /*! max segment size in mapper (for type CODE/DATA)      */
     86    cxy_t             cxy;          /*! physical mapping (for non distributed vseg)          */
    8787}
    8888vseg_t;
     
    123123 * @ type      : vseg type.
    124124 * @ cxy       : target cluster for physical mapping.
    125  * @ fdid      : file descriptor index if VSEG_TYPE_FILE.
    126  * @ offset    : offset in file if VSEG_TYPE_FILE.
    127125 *********************************************************************************************/
    128126void vseg_init( vseg_t      * vseg,
     
    132130                vpn_t         vpn_size,
    133131                    uint32_t      type,
    134                 cxy_t         cxy,
    135                 fdid_t        fdid,
    136                     uint32_t      offset );
     132                cxy_t         cxy );
    137133
    138134/**********************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.