Changeset 592


Ignore:
Timestamp:
Jul 8, 2015, 4:04:13 PM (9 years ago)
Author:
alain
Message:

Introduce support for the new POSIX-like FAT32.

Location:
soft/giet_vm/giet_kernel
Files:
2 edited

Legend:

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

    r579 r592  
    9393////////////////////////////////////////////////////////////////////////////////
    9494
    95 // FAT internal representation for kernel code
    96 __attribute__((section(".kdata")))
    97 fat32_fs_t     _fat      __attribute__((aligned(512)));
    98 
    9995// array of page tables virtual addresses
    10096__attribute__((section(".kdata")))
     
    338334    if ( gpid == 0 )
    339335    {
    340          _fat_init( 0 );   // no IRQ
     336        _fat_init( 1 );   // kernel mode => Inode-Tree, Fat-Cache and File-Caches
    341337
    342338#if GIET_DEBUG_INIT
  • soft/giet_vm/giet_kernel/sys_handler.c

    r556 r592  
    164164    &_sys_ukn,                       /* 0x1F */
    165165
    166     &_fat_user_open,                 /* 0x20 */
    167     &_fat_user_read,                 /* 0x21 */
    168     &_fat_user_write,                /* 0x22 */
    169     &_fat_user_lseek,                /* 0x23 */
    170     &_fat_fstat,                     /* 0x24 */
     166    &_fat_open,                      /* 0x20 */
     167    &_fat_read,                      /* 0x21 */
     168    &_fat_write,                     /* 0x22 */
     169    &_fat_lseek,                     /* 0x23 */
     170    &_fat_file_info,                 /* 0x24 */
    171171    &_fat_close,                     /* 0x25 */
    172     &_sys_ukn,                       /* 0x26 */
    173     &_sys_ukn,                       /* 0x27 */
    174     &_sys_ukn,                       /* 0x28 */
    175     &_sys_ukn,                       /* 0x29 */
     172    &_fat_remove,                    /* 0x26 */
     173    &_fat_rename,                    /* 0x27 */
     174    &_fat_mkdir,                     /* 0x28 */
     175    &_fat_list,                      /* 0x29 */
    176176    &_sys_ukn,                       /* 0x2A */
    177177    &_sys_ukn,                       /* 0x2B */
Note: See TracChangeset for help on using the changeset viewer.