Ignore:
Timestamp:
Jun 12, 2012, 4:21:27 PM (12 years ago)
Author:
karaoui
Message:

giet-vm new version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/stdio.c

    r158 r160  
    3434#define SYSCALL_IOC_READ        0x16
    3535#define SYSCALL_IOC_COMPLETED   0x17
    36 #define SYSCALL_MWMR_BASE       0x1A
     36#define SYSCALL_VOBJ_GET_VBASE  0x1A
    3737
    3838//////////////////////////////////////////////////////////////////////////////////
     
    720720//////////////////////////////////////////////////////////////////////////////////
    721721//      mwmr_base()
     722//      TODO!
    722723// This function returns in argument buffer the virtual base address
    723724// of a MWMR communication channel, identified by the two arguments
     
    726727// must be declared in the mapping_info data structure to be initialised
    727728// in the boot phase.
    728 // - Returns 0 if success, > 0 if error ( channel not defined )
    729 //////////////////////////////////////////////////////////////////////////////////
    730 unsigned int mwmr_base( char*           vspace_name,
    731                         char*           mwmr_name,
    732                         void*           buffer )
    733 {
    734     return sys_call(SYSCALL_MWMR_BASE,
     729// - Returns the address if success,  0 if error ( channel not defined )
     730//////////////////////////////////////////////////////////////////////////////////
     731unsigned int vobj_get_vbase( char* vspace_name, char* vobj_name,
     732                        unsigned int vobj_type, unsigned int* vobj_buffer)
     733{
     734    return sys_call(SYSCALL_VOBJ_GET_VBASE,
    735735                    (unsigned int)vspace_name,
    736                     (unsigned int)mwmr_name,
    737                     (unsigned int)buffer,
    738                     0);
     736                    (unsigned int)vobj_name,
     737                    (unsigned int)vobj_type,
     738                    (unsigned int)vobj_buffer);
    739739}
    740740////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.