Ignore:
Timestamp:
Jun 10, 2014, 1:28:14 PM (10 years ago)
Author:
alain
Message:

Various small modifs to comply with the genmap tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/sys_handler.c

    r301 r322  
    2020#include <fat32.h>
    2121#include <utils.h>
     22#include <hard_config.h>
    2223#include <giet_config.h>
    2324#include <mapping_info.h>
     25
     26#if !defined(SEG_BOOT_MAPPING_BASE)
     27# error: You must define SEG_BOOT_MAPPING_BASE in the hard_config.h file
     28#endif
    2429
    2530////////////////////////////////////////////////////////////////////////////
     
    139144                           unsigned int* buffer)
    140145{
    141     mapping_header_t * header  = (mapping_header_t *) &seg_boot_mapping_base;
     146    mapping_header_t * header  = (mapping_header_t *)SEG_BOOT_MAPPING_BASE;
    142147    mapping_cluster_t * cluster = _get_cluster_base(header);
    143148
     
    186191               mapping_vobj_t**  res_vobj )
    187192{
    188     mapping_header_t * header = (mapping_header_t *) &seg_boot_mapping_base;
     193    mapping_header_t * header = (mapping_header_t *)SEG_BOOT_MAPPING_BASE;
    189194    mapping_vspace_t * vspace = _get_vspace_base(header);
    190195    mapping_vobj_t * vobj     = _get_vobj_base(header);
     
    215220
    216221/////////////////////////////////////////////////////////////////////////////
    217 // This function writes in vobj_vaddr the virtual base address of a vobj
     222// This function writes in vobj_vbase the virtual base address of a vobj
    218223// identified by the (vspace_name / vobj_name ) couple.
    219224// returns 0 if success, >0 if not found
Note: See TracChangeset for help on using the changeset viewer.