Changeset 16 for trunk/kernel_config.h


Ignore:
Timestamp:
May 10, 2017, 5:04:01 PM (7 years ago)
Author:
alain
Message:

mprove the HAL for interrupt, exception, syscall handling.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/kernel_config.h

    r12 r16  
    4545#define CONFIG_KCM_DEBUG              0
    4646#define CONFIG_KHM_DEBUG              0
    47 #define CONFIG_KINIT_DEBUG            0
     47#define CONFIG_KINIT_DEBUG            1
    4848#define CONFIG_KMEM_DEBUG             0
    4949#define CONFIG_MMC_DEBUG              0
     
    5454#define CONFIG_PROCESS_DEBUG          0
    5555#define CONFIG_RPC_DEBUG              0
    56 #define CONFIG_SCHED_DEBUG            0
    57 #define CONFIG_THREAD_DEBUG           0
     56#define CONFIG_SCHED_DEBUG            1
     57#define CONFIG_THREAD_DEBUG           1
    5858#define CONFIG_TXT_DEBUG              0
    5959#define CONFIG_VFS_DEBUG              0
     
    7777#define CONFIG_CLUSTER_SPAN                 32         // ln(phys. address space per cluster)
    7878#define CONFIG_CACHE_LINE_SIZE              64         // number of bytes in cache line
     79
     80#define CONFIG_CACHE_LINE_ALIGNED           __attribute__((aligned(CONFIG_CACHE_LINE_SIZE)))
    7981
    8082#define CONFIG_MAX_IOC_CHANNELS             1          // max number of IOC device channels
     
    137139////////////////////////////////////////////////////////////////////////////////////////////
    138140
    139 #define CONFIG_RWLOCK_DELAY                 50     // number of iterations => 200 cycles
     141#define CONFIG_RWLOCK_DELAY                 50       // iterations number ( ~ 200 cycles )
    140142
    141143////////////////////////////////////////////////////////////////////////////////////////////
     
    144146
    145147#define CONFIG_DQDT_LEVELS_NR               5
    146 #define CONFIG_DQDT_PERIOD                  1      // number of ticks between updates
     148#define CONFIG_DQDT_PERIOD                  1        // number of ticks between updates
    147149
    148150////////////////////////////////////////////////////////////////////////////////////////////
     
    157159////////////////////////////////////////////////////////////////////////////////////////////
    158160
    159 #define CONFIG_SCHED_TICK_PERIOD            50000 // number of cycles
    160 #define CONFIG_SCHED_MAX_THREADS_NR         32    // max number of threads per core
     161#define CONFIG_SCHED_TICK_PERIOD            500000 // number of cycles
     162#define CONFIG_SCHED_MAX_THREADS_NR         32      // max number of threads per core
    161163
    162164////////////////////////////////////////////////////////////////////////////////////////////
     
    164166////////////////////////////////////////////////////////////////////////////////////////////
    165167
    166 #define CONFIG_THREAD_MAX_PER_CLUSTER       16     // max number of user threads per cluster
    167 #define CONFIG_THREAD_PAGE_ORDER            1      // ln( number of pages for thread_t )
     168#define CONFIG_THREAD_MAX_PER_CLUSTER       16      // max user threads per cluster
     169#define CONFIG_THREAD_DESC_SIZE             0x2000  // thread desc size (with kstack)
     170#define CONFIG_THREAD_DESC_ORDER            1       // ln( number of 4K pages )
    168171
    169172////////////////////////////////////////////////////////////////////////////////////////////
     
    230233
    231234#define CONFIG_KCM_BLOCKS_MAX         CONFIG_PPM_PAGE_SIZE / CONFIG_CACHE_LINE_SIZE
     235
     236#define CONFIG_PPM_PAGE_ALIGNED       __attribute__((aligned(CONFIG_PPM_PAGE_SIZE)))
    232237
    233238////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.