Changeset 550


Ignore:
Timestamp:
Apr 5, 2015, 12:21:15 AM (10 years ago)
Author:
alain
Message:

Cosmetic.

Location:
soft/giet_vm/giet_libs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/malloc.h

    r541 r550  
    66////////////////////////////////////////////////////////////////////////////////
    77// 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.
    1211////////////////////////////////////////////////////////////////////////////////
    1312// Free blocks organisation:
     
    4645// - Each allocated block is registered in an alloc[] array of unsigned char.
    4746// - 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. 
    4948// - The number of entries in this array is equal to the max number
    5049//   of allocated block is : heap_size / 128.
  • soft/giet_vm/giet_libs/stdio.c

    r521 r550  
    768768                   unsigned int  flags )
    769769{
    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;
    774776}
    775777
  • soft/giet_vm/giet_libs/stdio.h

    r521 r550  
    280280//////////////////////////////////////////////////////////////////////////
    281281
    282 extern int giet_fat_open(  const char*  pathname,
    283                            unsigned int flags );
     282extern int  giet_fat_open(  const char*  pathname,
     283                            unsigned int flags );
    284284
    285285extern void giet_fat_read(  unsigned int fd,
Note: See TracChangeset for help on using the changeset viewer.