Changeset 550 for soft/giet_vm/giet_libs
- Timestamp:
- Apr 5, 2015, 12:21:15 AM (10 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/malloc.h
r541 r550 6 6 //////////////////////////////////////////////////////////////////////////////// 7 7 // Initialisation policy: 8 // Each heap(x,y) structure is initialized by the malloc() or remote_malloc() 9 // function, when this function is called the first time. 10 // The function hep_init() initialise the free blocks linked lists as 11 // explained below. 8 // The user application must initialize the heap(x,y) structure before 9 // using the malloc() or remote_malloc() functions, and this initialization 10 // must be done by a single task. 12 11 //////////////////////////////////////////////////////////////////////////////// 13 12 // Free blocks organisation: … … 46 45 // - Each allocated block is registered in an alloc[] array of unsigned char. 47 46 // - This registration is required by the free() operation, because the size 48 // of the allocated block must obtained from the base address of the block.47 // of the allocated block must be obtained from the base address of the block. 49 48 // - The number of entries in this array is equal to the max number 50 49 // of allocated block is : heap_size / 128. -
soft/giet_vm/giet_libs/stdio.c
r521 r550 768 768 unsigned int flags ) 769 769 { 770 return sys_call( SYSCALL_FAT_OPEN, 771 (unsigned int)pathname, 772 flags, 773 0, 0 ); 770 int ret = sys_call( SYSCALL_FAT_OPEN, 771 (unsigned int)pathname, 772 flags, 773 0, 0 ); 774 if ( ret < 0 ) giet_exit("error in giet_fat_open()"); 775 return ret; 774 776 } 775 777 -
soft/giet_vm/giet_libs/stdio.h
r521 r550 280 280 ////////////////////////////////////////////////////////////////////////// 281 281 282 extern int giet_fat_open( const char* pathname,283 unsigned int flags );282 extern int giet_fat_open( const char* pathname, 283 unsigned int flags ); 284 284 285 285 extern void giet_fat_read( unsigned int fd,
Note: See TracChangeset
for help on using the changeset viewer.