Changeset 12 for trunk/almos_config.h


Ignore:
Timestamp:
Apr 26, 2017, 2:40:42 PM (7 years ago)
Author:
alain
Message:

This version executed sucessfully the kernel_init on a TSAR_2_2_2 (4 clusters / 2 cores) architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/almos_config.h

    r1 r12  
    3030
    3131////////////////////////////////////////////////////////////////////////////////////////////
     32//          KERNEL DEBUG
     33////////////////////////////////////////////////////////////////////////////////////////////
     34
     35#define CONFIG_CONTEXT_DEBUG          0
     36#define CONFIG_CORE_DEBUG             0
     37#define CONFIG_DMA_DEBUG              0
     38#define CONFIG_DQDT_DEBUG             0
     39#define CONFIG_ELF_DEBUG              0
     40#define CONFIG_EXEC_DEBUG             0
     41#define CONFIG_FBF_DEBUG              0
     42#define CONFIG_FORK_DEBUG             0
     43#define CONFIG_ICU_DEBUG              0
     44#define CONFIG_IOC_DEBUG              0
     45#define CONFIG_KCM_DEBUG              0
     46#define CONFIG_KHM_DEBUG              0
     47#define CONFIG_KINIT_DEBUG            0
     48#define CONFIG_KMEM_DEBUG             0
     49#define CONFIG_MMC_DEBUG              0
     50#define CONFIG_MAPPER_DEBUG           0
     51#define CONFIG_NIC_DEBUG              0
     52#define CONFIG_PIC_DEBUG              0
     53#define CONFIG_PPM_DEBUG              0
     54#define CONFIG_PROCESS_DEBUG          0
     55#define CONFIG_RPC_DEBUG              0
     56#define CONFIG_SCHED_DEBUG            0
     57#define CONFIG_THREAD_DEBUG           0
     58#define CONFIG_TXT_DEBUG              0
     59#define CONFIG_VFS_DEBUG              0
     60#define CONFIG_VMM_DEBUG              0
     61
     62////////////////////////////////////////////////////////////////////////////////////////////
    3263//        HARDWARE CONFIGURATION     
    3364////////////////////////////////////////////////////////////////////////////////////////////
     
    3667#define CONFIG_CYCLES_PER_MS                1000000    // about 1 Ghz             
    3768#define CONFIG_MAX_CLUSTER                  256        // max number of clusters
    38 #define CONFIG_MAX_CORES_PER_CLUSTER        4          // max number of cores per cluster
    39 #define CONFIG_MAX_DEVICES_PER_CLUSTER      32         // max number of periphs per cluster
     69#define CONFIG_MAX_LOCAL_CORES              4          // max number of cores per cluster
     70#define CONFIG_MAX_INT_DEV                  4          // max number of internal peripherals
     71#define CONFIG_MAX_EXT_DEV                  8          // max number of external peripherals
    4072#define CONFIG_MAX_HWIS_PER_ICU             32         // max number of HWI per ICU
    4173#define CONFIG_MAX_PTIS_PER_ICU             32         // max number of PTI per ICU
     
    4678#define CONFIG_CACHE_LINE_SIZE              64         // number of bytes in cache line
    4779
    48 #define CONFIG_MAX_TXT_CHANNELS             32         // max number of TXT device channels
    49 #define CONFIG_MAX_NIC_CHANNELS             32         // max number of NIC device channels
    50 #define CONFIG_MAX_CMA_CHANNELS             32         // max number of CMA device channels
     80#define CONFIG_MAX_IOC_CHANNELS             1          // max number of IOC device channels
     81#define CONFIG_MAX_FBF_CHANNELS             1          // max number of FBF device channels
     82#define CONFIG_MAX_TXT_CHANNELS             16         // max number of TXT device channels
     83#define CONFIG_MAX_DMA_CHANNELS             8          // max number of TXT device channels
     84#define CONFIG_MAX_NIC_CHANNELS             8          // max number of NIC device channels
     85
    5186#define CONFIG_MAX_CLUSTERS                 256        // max number of clusters
    5287
     
    129164////////////////////////////////////////////////////////////////////////////////////////////
    130165
    131 #define CONFIG_THREAD_MAX_PER_CLUSTER      16     // max number of user threads per cluster
    132 #define CONFIG_THREAD_PAGE_ORDER           1      // ln( number of pages for thread_t )
     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 )
    133168
    134169////////////////////////////////////////////////////////////////////////////////////////////
     
    144179////////////////////////////////////////////////////////////////////////////////////////////
    145180
    146 #define CONFIG_RPC_PENDING_MAX              8     // max requests handled by one server
    147 #define CONFIG_RPC_THREADS_MAX              8     // max number of RPC threads per core
     181#define CONFIG_RPC_PENDING_MAX              8      // max requests handled by one server
     182#define CONFIG_RPC_THREADS_MAX              8      // max number of RPC threads per core
    148183
    149184////////////////////////////////////////////////////////////////////////////////////////////
     
    151186////////////////////////////////////////////////////////////////////////////////////////////
    152187
    153 #define CONFIG_DEV_STDIN           "/dev/tty2"
    154 #define CONFIG_DEV_STDOUT          "/dev/tty2"
    155 #define CONFIG_DEV_STDERR          "/dev/tty3"
     188#define CONFIG_DEV_STDIN                    "/dev/tty2"
     189#define CONFIG_DEV_STDOUT                   "/dev/tty2"
     190#define CONFIG_DEV_STDERR                   "/dev/tty3"
    156191
    157192////////////////////////////////////////////////////////////////////////////////////////////
     
    159194////////////////////////////////////////////////////////////////////////////////////////////
    160195
    161 #define CONFIG_MAPPER_MAX_FRAGMENTS        10    // max number of fragments moved
    162 #define CONFIG_MAPPER_MIN             CONFIG_VFS_INODE_MIN
    163 #define CONFIG_MAPPER_MAX             CONFIG_VFS_INODE_MAX
     196#define CONFIG_MAPPER_MAX_FRAGMENTS        10      // max number of fragments moved
     197#define CONFIG_MAPPER_MIN                  CONFIG_VFS_INODE_MIN
     198#define CONFIG_MAPPER_MAX                  CONFIG_VFS_INODE_MAX
    164199
    165200////////////////////////////////////////////////////////////////////////////////////////////
     
    194229#define CONFIG_PPM_HEAP_ORDER         10           // ln(number of heap pages per cluster)
    195230
    196 ////////////////////////////////////////////////////////////////////////////////////////////
    197 //          KERNEL DEBUG
    198 ////////////////////////////////////////////////////////////////////////////////////////////
    199 
    200 #define CONFIG_DMSG_LEVEL                DMSG_DEBUG
    201 #define CONFIG_XICU_USR_ACCESS           no
     231#define CONFIG_KCM_BLOCKS_MAX         CONFIG_PPM_PAGE_SIZE / CONFIG_CACHE_LINE_SIZE
     232
     233////////////////////////////////////////////////////////////////////////////////////////////
     234//     INSTRUMENTATION  ... probably deprecated ...       
     235////////////////////////////////////////////////////////////////////////////////////////////
     236
    202237#define CONFIG_SPINLOCK_CHECK            no
    203238#define CONFIG_SPINLOCK_TIMEOUT          100
     
    222257#define CONFIG_SHOW_EPC_CORE0            no
    223258#define CONFIG_CORE_TRACE                no
    224 #define CONFIG_DQDT_DEBUG                no
    225259#define CONFIG_KFIFO_DEBUG               no
    226 #define CONFIG_KHM_DEBUG                 no
    227 #define CONFIG_KCM_DEBUG                 no
    228 #define CONFIG_KMEM_DEBUG                no
    229 #define CONFIG_MAPPER_DEBUG              no
    230260#define CONFIG_SHOW_KMEM_INIT            no
    231261#define CONFIG_MEM_CHECK                 no
    232262#define CONFIG_THREAD_TIME_STAT          yes
    233263#define CONFIG_SCHED_RR_CHECK            no
    234 #define CONFIG_FORK_DEBUG                no//yes
    235 #define CONFIG_VMM_DEBUG                 no
    236 #define CONFIG_ELF_DEBUG                 no
    237264#define CONFIG_VFAT_PGWRITE_ENABLE       no
    238265#define CONFIG_VFAT_DEBUG                no
     
    240267#define CONFIG_EXT2_DEBUG                no
    241268#define CONFIG_METAFS_DEBUG              no
    242 #define CONFIG_VFS_DEBUG                 no
    243269#define CONFIG_VFS_INODE_LOCAL           yes
    244270#define CONFIG_DEVFS_DEBUG               no
     
    247273#define CONFIG_BC_DEBUG                  no
    248274#define CONFIG_BC_INSTRUMENT             no
    249 #define CONFIG_LOCKS_DEBUG               no
    250 #define CONFIG_SCHED_DEBUG               no
    251 #define CONFIG_VERBOSE_LOCK              no
    252 #define CONFIG_PID_DEBUG                 no//yes
    253 #define CONFIG_HTBL_DEBUG                no
    254 #define CONFIG_SHOW_RPC_MSG              no
    255 #define CONFIG_EXEC_DEBUG                no
    256 #define CONFIG_USE_RPC_TEST              yes
    257 #define CONFIG_SHOW_ALL_BOOT_MSG         no//yes
    258 #define CONFIG_ALMOS_LIST_DEBUG              no
    259 ////////////////////////////////////////////////////////////////////////////////////////////
    260275
    261276////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.