Changeset 160 for soft/giet_vm/libs/stdio.c
- Timestamp:
- Jun 12, 2012, 4:21:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/stdio.c
r158 r160 34 34 #define SYSCALL_IOC_READ 0x16 35 35 #define SYSCALL_IOC_COMPLETED 0x17 36 #define SYSCALL_ MWMR_BASE 0x1A36 #define SYSCALL_VOBJ_GET_VBASE 0x1A 37 37 38 38 ////////////////////////////////////////////////////////////////////////////////// … … 720 720 ////////////////////////////////////////////////////////////////////////////////// 721 721 // mwmr_base() 722 // TODO! 722 723 // This function returns in argument buffer the virtual base address 723 724 // of a MWMR communication channel, identified by the two arguments … … 726 727 // must be declared in the mapping_info data structure to be initialised 727 728 // 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 ////////////////////////////////////////////////////////////////////////////////// 731 unsigned 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, 735 735 (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); 739 739 } 740 740 ////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.