Changeset 408 for trunk/kernel_config.h


Ignore:
Timestamp:
Dec 5, 2017, 4:20:07 PM (6 years ago)
Author:
alain
Message:

Fix several bugs in the fork() syscall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel_config.h

    r407 r408  
    4545#define CONFIG_DQDT_DEBUG             0
    4646#define CONFIG_ELF_DEBUG              0
    47 #define CONFIG_EXEC_DEBUG             20
     47#define CONFIG_EXEC_DEBUG             1
    4848#define CONFIG_EXCP_DEBUG             0
    4949#define CONFIG_FATFS_DEBUG            0
    5050#define CONFIG_FBF_DEBUG              0
    51 #define CONFIG_FORK_DEBUG             20
     51#define CONFIG_FORK_DEBUG             1
    5252#define CONFIG_GPT_DEBUG              0
    5353#define CONFIG_GRPC_DEBUG             0
     
    5656#define CONFIG_IRQ_DEBUG              0
    5757#define CONFIG_KCM_DEBUG              0
     58#define CONFIG_KENTRY_DEBUG           0
    5859#define CONFIG_KHM_DEBUG              0
    59 #define CONFIG_KINIT_DEBUG            0       
     60#define CONFIG_KINIT_DEBUG            0
    6061#define CONFIG_KMEM_DEBUG             0
    6162#define CONFIG_MMAP_DEBUG             0         
     
    6869#define CONFIG_READ_DEBUG             0
    6970#define CONFIG_RPC_DEBUG              0
    70 #define CONFIG_SCHED_DEBUG            0
     71#define CONFIG_SCHED_DEBUG            5000000
    7172#define CONFIG_SIGNAL_DEBUG           0
    72 #define CONFIG_SYSCALL_DEBUG          0
     73#define CONFIG_SYSCALL_DEBUG          1
    7374#define CONFIG_THREAD_DEBUG           0
    7475#define CONFIG_TXT_DEBUG              0
     
    178179////////////////////////////////////////////////////////////////////////////////////////////
    179180
    180 #define CONFIG_SCHED_TICK_MS_PERIOD         1000    // number of milliseconds
     181#define CONFIG_SCHED_TICK_MS_PERIOD         3000    // number of milliseconds
    181182#define CONFIG_SCHED_TICKS_PER_QUANTUM      1       // number of ticks between scheduling
    182183#define CONFIG_SCHED_MAX_THREADS_NR         32      // max number of threads per core
     
    186187////////////////////////////////////////////////////////////////////////////////////////////
    187188
    188 #define CONFIG_THREAD_MAX_PER_CLUSTER       16      // max user threads per cluster
     189#define CONFIG_THREAD_MAX_PER_CLUSTER       16      // max threads per cluster & process
    189190#define CONFIG_THREAD_DESC_SIZE             0x4000  // thread desc size (with kernel stack)
    190191#define CONFIG_THREAD_DESC_ORDER            2       // ln( number of 4K pages )
     
    225226////////////////////////////////////////////////////////////////////////////////////////////
    226227
    227 #define CONFIG_VMM_VSPACE_SIZE        0x100000     // virtual space           : 4   Gbytes
    228 
    229 #define CONFIG_VMM_KENTRY_BASE        0x000004     // UTILS zone base         : 16  Kbytes
    230 #define CONFIG_VMM_ELF_BASE           0x000400     // ELF zone base           : 4   Mbytes
    231 #define CONFIG_VMM_HEAP_BASE          0x002000     // HEAP zone base          : 32  Mbytes
    232 #define CONFIG_VMM_STACK_BASE         0x0C0000     // STACK zone base         : 3  Gbytes
    233 
    234 #define CONFIG_VMM_KENTRY_SIZE        0x000004     // kentry vseg size        : 16  Kbytes
    235 #define CONFIG_VMM_ARGS_SIZE          0x000004     // args vseg size          : 16  Kbytes
    236 #define CONFIG_VMM_ENVS_SIZE          0x000008     // envs vseg size          : 32  Kbytes
    237 #define CONFIG_VMM_STACK_SIZE         0x002000     // single stack vseg size  : 32  Mbytes
     228#define CONFIG_VMM_VSPACE_SIZE        0x100000     // virtual space          : 4   Gbytes
     229
     230#define CONFIG_VMM_KENTRY_BASE        0x000004     // UTILS zone base        : 16  Kbytes
     231#define CONFIG_VMM_ELF_BASE           0x000400     // ELF zone base          : 4   Mbytes
     232#define CONFIG_VMM_HEAP_BASE          0x002000     // HEAP zone base         : 32  Mbytes
     233#define CONFIG_VMM_STACK_BASE         0x0F0000     // STACK zone base        : 3.7 Gbytes
     234
     235#define CONFIG_VMM_KENTRY_SIZE        0x000004     // kentry vseg size       : 16  Kbytes
     236#define CONFIG_VMM_ARGS_SIZE          0x000004     // args vseg size         : 16  Kbytes
     237#define CONFIG_VMM_ENVS_SIZE          0x000008     // envs vseg size         : 32  Kbytes
     238#define CONFIG_VMM_STACK_SIZE         0x000100     // single stack vseg size : 1   Mbytes
    238239
    239240#define CONFIG_VMM_GRDXT_W1           7            // number of bits for RADIX_TREE_IX1
Note: See TracChangeset for help on using the changeset viewer.