Ignore:
Timestamp:
Jul 4, 2012, 2:51:18 PM (12 years ago)
Author:
alain
Message:

Introducing various modifications in kernel initialisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/xml/mapping_info.h

    r160 r165  
    5757enum
    5858{
    59     ELF = 0,    //loadable code object
    60     PTAB,       //page table
    61     PERI,       //hardware component
    62     MWMR,       //MWMR channel
    63     LOCK,       //Lock
    64     BUFFER,     //Any "no intialiasation needed" objects (stacks...)
    65     BARRIER     //Barrier
     59    VOBJ_TYPE_ELF     = 0,     // loadable code object
     60    VOBJ_TYPE_PTAB    = 1,     // page table
     61    VOBJ_TYPE_PERI    = 2,     // hardware component
     62    VOBJ_TYPE_MWMR    = 3,     // MWMR channel
     63    VOBJ_TYPE_LOCK    = 4,     // Lock
     64    VOBJ_TYPE_BUFFER  = 5,     // Any "no intialiasation needed" objects (stacks...)
     65    VOBJ_TYPE_BARRIER = 6,     // Barrier
    6666};
    6767
     
    7474        unsigned int    psegs;          // number of psegs
    7575    unsigned int    ttys;           // number of TTY terminals
     76    unsigned int    fbs;            // number of Frame Buffer DMA channels
    7677        unsigned int    globals;                // number of vsegs mapped in all vspaces
    7778        unsigned int    vspaces;                // number of virtual spaces
    7879        unsigned int    vsegs;                  // total number of virtual segments (for all vspaces)
    79         unsigned int    vobjs;                  // total number of virtual memory objects (for all vspaces)
     80        unsigned int    vobjs;                  // total number of virtual objects (for all vspaces)
    8081        unsigned int    tasks;                  // total number of tasks (for all vspaces)
    8182    char            name[32];       // mapping name
     
    8687{
    8788    unsigned int    procs;          // number of processors in cluster
    88     unsigned int    timers;         // number of timers in cluster
    89     unsigned int    dmas;           // number of DMA channels in cluster
    9089} mapping_cluster_t;
    9190
     
    103102{
    104103    char            name[32];       // virtual space name
    105     unsigned int    funcs_offset;   // offset of the vobj containing the function entry table (relative to vobj_offset)
    106         unsigned int    vsegs;              // number of private virtual segments
    107         unsigned int    vobjs;              // number of vobjs channels
    108         unsigned int    tasks;              // number of tasks
    109         unsigned int    ttys;               // number of required TTY terminals
     104    unsigned int    start_offset;   // offset of the vobj containing the start vector
     105        unsigned int    vsegs;              // number of vsegs in vspace
     106        unsigned int    vobjs;              // number of vobjs in vspace
     107        unsigned int    tasks;              // number of tasks in vspace
    110108    unsigned int    vseg_offset;    // index of first vseg in vspace
    111109    unsigned int    vobj_offset;    // index of first vobjs in vspace
     
    121119        unsigned int    length;         // size (bytes)
    122120        unsigned int    psegid;         // physical segment index
    123         unsigned char   mode;           // C-X-W-U flags
    124     unsigned char   ident;          // identity mapping if non zero
    125         unsigned int    vobjs;              // number of vobjs channels
    126     unsigned int    vobj_offset;    // index of first vobjs in vspace
    127     unsigned char   reserved;       // unused
     121        unsigned int    mode;           // C-X-W-U flags
     122    unsigned int    ident;          // identity mapping if non zero
     123        unsigned int    vobjs;              // number of vobjs in vseg
     124    unsigned int    vobj_offset;    // index of first vobjs in vseg
    128125} mapping_vseg_t;
    129126
     
    135132        unsigned int    proclocid;      // processor local index (inside cluster)
    136133    unsigned int    vobjlocid;      // stack vobj index in vspace
    137     unsigned int    startid;        // index in start_vector (in seg_data)
    138     unsigned int    ttylocid;       // tty index (inside the vspace)
     134    unsigned int    startid;        // index in start_vector
     135    unsigned int    use_tty;        // TTY terminal required
     136    unsigned int    use_fb;         // DMA channel to frame buffer required
    139137} mapping_task_t;
    140138
     
    143141{
    144142    char            name[32];       // vobj name (unique in a vspace)
    145     char            binpath[64];    // path for the binary code ("*.bin")
     143    char            binpath[64];    // path for the binary code ("*.elf")
    146144        unsigned int    type;           // type of vobj
    147145        unsigned int    length;         // size (bytes)
    148146        unsigned int    align;          // required alignement (logarithm of 2)
    149         unsigned int    vaddr;          // virtual addresse of the vobj location (bytes)
    150         unsigned int    paddr;          // physical addresse of the vobj location (bytes)
     147        unsigned int    vaddr;          // virtual base addresse of the vobj
     148        unsigned int    paddr;          // physical base addresse of the vobj
     149        unsigned int    init;           // init value (number of participants for a barrier)
    151150} mapping_vobj_t;
    152151
Note: See TracChangeset for help on using the changeset viewer.