Ignore:
Timestamp:
Apr 10, 2019, 10:09:39 AM (5 years ago)
Author:
alain
Message:

Fix a bug in the vmm_remove_vseg() function: the physical pages
associated to an user DATA vseg were released to the kernel when
the target process descriptor was in the reference cluster.
This physical pages release should be done only when the page
forks counter value is zero.
All other modifications are cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kernel_config.h

    r624 r625  
    2626#define _KERNEL_CONFIG_H_
    2727
    28 #define CONFIG_ALMOS_VERSION           "Version 1.1 / October 2018"
     28#define CONFIG_ALMOS_VERSION           "Version 2.0 / April 2019"
    2929
    3030////////////////////////////////////////////////////////////////////////////////////////////
     
    4040
    4141#define DEBUG_BUSYLOCK                    0
    42 #define DEBUG_BUSYLOCK_PID                0x10001    // thread pid (when detailed debug)
    43 #define DEBUG_BUSYLOCK_TRDID              0x10000    // thread trdid (when detailed debug)
     42#define DEBUG_BUSYLOCK_PID                0x10001    // for busylock detailed debug
     43#define DEBUG_BUSYLOCK_TRDID              0x10000    // for busylock detailed debug
    4444                 
    4545#define DEBUG_CHDEV_CMD_RX                0
     
    9292#define DEBUG_FATFS_UPDATE_DENTRY         0
    9393
     94#define DEBUG_HAL_CONTEXT                 0
    9495#define DEBUG_HAL_EXCEPTIONS              0
    9596#define DEBUG_HAL_GPT_SET_PTE             0
     
    164165
    165166#define DEBUG_SCHED_HANDLE_SIGNALS        2
    166 #define DEBUG_SCHED_YIELD                 0     
     167#define DEBUG_SCHED_YIELD                 0
    167168#define DEBUG_SCHED_RPC_ACTIVATE          0
    168169
     
    186187#define DEBUG_SYS_IS_FG                   0
    187188#define DEBUG_SYS_KILL                    0
    188 #define DEBUG_SYS_OPEN                    0
    189 #define DEBUG_SYS_OPENDIR                 0
    190189#define DEBUG_SYS_MKDIR                   0
    191190#define DEBUG_SYS_MMAP                    0
    192191#define DEBUG_SYS_MUNMAP                  0
    193192#define DEBUG_SYS_MUTEX                   0
     193#define DEBUG_SYS_OPEN                    0
     194#define DEBUG_SYS_OPENDIR                 0
    194195#define DEBUG_SYS_READ                    0
    195196#define DEBUG_SYS_READDIR                 0
     
    230231#define DEBUG_VFS_INODE_CREATE            0
    231232#define DEBUG_VFS_INODE_LOAD_ALL          0
     233#define DEBUG_VFS_KERNEL_MOVE             0
    232234#define DEBUG_VFS_LINK                    0
    233235#define DEBUG_VFS_LOOKUP                  0
    234236#define DEBUG_VFS_LSEEK                   0
    235237#define DEBUG_VFS_MKDIR                   0
    236 #define DEBUG_VFS_NEW_CHILD_INIT          0
     238#define DEBUG_VFS_NEW_DENTRY_INIT         0
    237239#define DEBUG_VFS_OPEN                    0
    238240#define DEBUG_VFS_OPENDIR                 0
    239241#define DEBUG_VFS_STAT                    0
     242#define DEBUG_VFS_USER_MOVE               0
    240243#define DEBUG_VFS_UNLINK                  0
    241244
     
    248251#define DEBUG_VMM_HANDLE_PAGE_FAULT       0
    249252#define DEBUG_VMM_HANDLE_COW              0
    250 #define DEBUG_VMM_INIT                    0
    251253#define DEBUG_VMM_MMAP_ALLOC              0
    252254#define DEBUG_VMM_PAGE_ALLOCATE           0
     255#define DEBUG_VMM_REMOVE_VSEG             0
    253256#define DEBUG_VMM_RESIZE_VSEG             0
    254257#define DEBUG_VMM_SET_COW                 0
    255258#define DEBUG_VMM_UPDATE_PTE              0
     259#define DEBUG_VMM_USER_INIT               0
     260#define DEBUG_VMM_USER_RESET              0
    256261
    257262#define DEBUG_XHTAB                       0
     
    421426#define CONFIG_VMM_ARGS_SIZE          0x000004     // args vseg size         : 16  Kbytes
    422427#define CONFIG_VMM_ENVS_SIZE          0x000008     // envs vseg size         : 32  Kbytes
    423 #define CONFIG_VMM_STACK_SIZE         0x000100     // single stack vseg size : 1   Mbytes
     428#define CONFIG_VMM_STACK_SIZE         0x001000     // single stack vseg size : 16  Mbytes
    424429
    425430////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.