Ignore:
Timestamp:
May 3, 2018, 5:51:22 PM (6 years ago)
Author:
alain
Message:

1/ Fix a bug in the Multithreaded "sort" applicationr:
The pthread_create() arguments must be declared as global variables.
2/ The exit syscall can be called by any thread of a process..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kernel_config.h

    r439 r440  
    3838
    3939
    40 #define CONFIG_DEBUG_CHDEV_CMD_RX             0
    41 #define CONFIG_DEBUG_CHDEV_CMD_TX             0
    42 #define CONFIG_DEBUG_CHDEV_SERVER_RX          0
    43 #define CONFIG_DEBUG_CHDEV_SERVER_TX          0
    44 
    45 #define CONFIG_DEBUG_CLUSTER_INIT             0
    46 #define CONFIG_DEBUG_CLUSTER_PROCESS_COPIES   0
    47 
    48 #define CONFIG_DEBUG_DEV_TXT_RX               0
    49 #define CONFIG_DEBUG_DEV_TXT_TX               0
    50 #define CONFIG_DEBUG_DEV_IOC_RX               0
    51 #define CONFIG_DEBUG_DEV_IOC_TX               0
    52 #define CONFIG_DEBUG_DEV_NIC_RX               0
    53 #define CONFIG_DEBUG_DEV_NIC_RX               0
    54 #define CONFIG_DEBUG_DEV_FBF_RX               0
    55 #define CONFIG_DEBUG_DEV_FBF_TX               0
    56 #define CONFIG_DEBUG_DEV_DMA                  0
    57 #define CONFIG_DEBUG_DEV_MMC                  0
    58 #define CONFIG_DEBUG_DEV_PIC                  0
    59 
    60 #define CONFIG_DEBUG_DEVFS_INIT               0
    61 #define CONFIG_DEBUG_DEVFS_MOVE               0
    62 
    63 #define CONFIG_DEBUG_FATFS_INIT               0
    64 #define CONFIG_DEBUG_FATFS_MOVE               0
    65 #define CONFIG_DEBUG_FATFS_LOAD               0
    66 
    67 #define CONFIG_DEBUG_GPT_ACCESS               0
    68 
    69 #define CONFIG_DEBUG_HAL_KENTRY               0
    70 #define CONFIG_DEBUG_HAL_EXCEPTIONS           0
    71 #define CONFIG_DEBUG_HAL_IRQS                 0       
    72 #define CONFIG_DEBUG_HAL_TXT_RX               0
    73 #define CONFIG_DEBUG_HAL_TXT_TX               0
    74 #define CONFIG_DEBUG_HAL_IOC_RX               0
    75 #define CONFIG_DEBUG_HAL_IOC_TX               0
    76 
    77 #define CONFIG_DEBUG_KCM                      0
    78 #define CONFIG_DEBUG_KMEM                     0
    79 
    80 #define CONFIG_DEBUG_KERNEL_INIT              0
    81 #define CONFIG_DEBUG_KMEM_ALLOC               0
    82 
    83 #define CONFIG_DEBUG_MAPPER_GET_PAGE          0
    84 #define CONFIG_DEBUG_MAPPER_MOVE_USER         0
    85 #define CONFIG_DEBUG_MAPPER_MOVE_KERNEL       0
    86 
    87 #define CONFIG_DEBUG_PPM_ALLOC_PAGES          0
    88 #define CONFIG_DEBUG_PPM_FREE_PAGES           0
    89 
    90 #define CONFIG_DEBUG_PROCESS_COPY_INIT        0
    91 #define CONFIG_DEBUG_PROCESS_DESTROY          0
    92 #define CONFIG_DEBUG_PROCESS_INIT_CREATE      0
    93 #define CONFIG_DEBUG_PROCESS_MAKE_EXEC        1
    94 #define CONFIG_DEBUG_PROCESS_MAKE_FORK        1
    95 #define CONFIG_DEBUG_PROCESS_REFERENCE_INIT   0
    96 #define CONFIG_DEBUG_PROCESS_SIGACTION        0
    97 #define CONFIG_DEBUG_PROCESS_TXT_ATTACH       0
    98 #define CONFIG_DEBUG_PROCESS_ZERO_CREATE      0
    99 
    100 #define CONFIG_DEBUG_RPC_MARSHALING           0
    101 #define CONFIG_DEBUG_RPC_SEND                 0
    102 #define CONFIG_DEBUG_RPC_SERVER               0
    103 
    104 #define CONFIG_DEBUG_SCHED_HANDLE_SIGNALS     0
    105 #define CONFIG_DEBUG_SCHED_YIELD              0
    106 
    107 #define CONFIG_DEBUG_SYSCALLS_ERROR           2
    108 
    109 #define CONFIG_DEBUG_SYS_DISPLAY              0
    110 #define CONFIG_DEBUG_SYS_EXEC                 1
    111 #define CONFIG_DEBUG_SYS_EXIT                 0
    112 #define CONFIG_DEBUG_SYS_FG                   0
    113 #define CONFIG_DEBUG_SYS_FORK                 1
    114 #define CONFIG_DEBUG_SYS_GET_CONFIG           0
    115 #define CONFIG_DEBUG_SYS_ISATTY               0
    116 #define CONFIG_DEBUG_SYS_KILL                 1
    117 #define CONFIG_DEBUG_SYS_MMAP                 0
    118 #define CONFIG_DEBUG_SYS_READ                 0
    119 #define CONFIG_DEBUG_SYS_THREAD_CANCEL        0
    120 #define CONFIG_DEBUG_SYS_THREAD_EXIT          0
    121 #define CONFIG_DEBUG_SYS_THREAD_JOIN          0
    122 #define CONFIG_DEBUG_SYS_THREAD_SLEEP         0
    123 #define CONFIG_DEBUG_SYS_THREAD_WAKEUP        0
    124 #define CONFIG_DEBUG_SYS_WAIT                 0
    125 #define CONFIG_DEBUG_SYS_WRITE                0
    126 
    127 #define CONFIG_DEBUG_SPINLOCKS                0
    128 #define CONFIG_DEBUG_REMOTE_SPINLOCKS         0
    129 #define CONFIG_DEBUG_RWLOCKS                  0
    130 #define CONFIG_DEBUG_REMOTE_RWLOCKS           0
    131 
    132 #define CONFIG_DEBUG_THREAD_DESTROY           0
    133 #define CONFIG_DEBUG_THREAD_IDLE              0
    134 #define CONFIG_DEBUG_THREAD_KERNEL_CREATE     0
    135 #define CONFIG_DEBUG_THREAD_KILL              0
    136 #define CONFIG_DEBUG_THREAD_USER_CREATE       0
    137 #define CONFIG_DEBUG_THREAD_USER_FORK         0
    138 #define CONFIG_DEBUG_THREAD_BLOCK             0
    139 
    140 #define CONFIG_DEBUG_VFS_INODE_CREATE         0
    141 #define CONFIG_DEBUG_VFS_INODE_LOAD           0
    142 #define CONFIG_DEBUG_VFS_DENTRY_CREATE        0
    143 #define CONFIG_DEBUG_VFS_OPEN                 0
    144 #define CONFIG_DEBUG_VFS_LOOKUP               0
    145 #define CONFIG_DEBUG_VFS_ADD_CHILD            0
    146 #define CONFIG_DEBUG_VFS_MAPPER_MOVE          0
    147 #define CONFIG_DEBUG_VFS_MAPPER_LOAD          0
    148 
    149 #define CONFIG_DEBUG_VMM_CREATE_VSEG          0
    150 #define CONFIG_DEBUG_VMM_DESTROY              0
    151 #define CONFIG_DEBUG_VMM_FORK_COPY            0
    152 #define CONFIG_DEBUG_VMM_GET_ONE_PPN          0
    153 #define CONFIG_DEBUG_VMM_GET_PTE              0
    154 #define CONFIG_DEBUG_VMM_INIT                 0
    155 #define CONFIG_DEBUG_VMM_PAGE_ALLOCATE        0
    156 #define CONFIG_DEBUG_VMM_SET_COW              0
    157 #define CONFIG_DEBUG_VMM_UNMAP_VSEG           0
    158 #define CONFIG_DEBUG_VMM_UPDATE_PTE           0
     40#define DEBUG_CHDEV_CMD_RX             0
     41#define DEBUG_CHDEV_CMD_TX             0
     42#define DEBUG_CHDEV_SERVER_RX          0
     43#define DEBUG_CHDEV_SERVER_TX          0
     44
     45#define DEBUG_CLUSTER_INIT             0
     46#define DEBUG_CLUSTER_PID_ALLOC        0
     47#define DEBUG_CLUSTER_PID_RELEASE      0
     48#define DEBUG_CLUSTER_PROCESS_COPIES   0
     49
     50#define DEBUG_DEV_TXT_RX               0
     51#define DEBUG_DEV_TXT_TX               0
     52#define DEBUG_DEV_IOC_RX               0
     53#define DEBUG_DEV_IOC_TX               0
     54#define DEBUG_DEV_NIC_RX               0
     55#define DEBUG_DEV_NIC_RX               0
     56#define DEBUG_DEV_FBF_RX               0
     57#define DEBUG_DEV_FBF_TX               0
     58#define DEBUG_DEV_DMA                  0
     59#define DEBUG_DEV_MMC                  0
     60#define DEBUG_DEV_PIC                  0
     61
     62#define DEBUG_DEVFS_INIT               0
     63#define DEBUG_DEVFS_MOVE               0
     64
     65#define DEBUG_FATFS_INIT               0
     66#define DEBUG_FATFS_MOVE               0
     67#define DEBUG_FATFS_LOAD               0
     68
     69#define DEBUG_GPT_ACCESS               0
     70
     71#define DEBUG_HAL_KENTRY               0
     72#define DEBUG_HAL_EXCEPTIONS           0
     73#define DEBUG_HAL_IRQS                 0       
     74#define DEBUG_HAL_TXT_RX               0
     75#define DEBUG_HAL_TXT_TX               0
     76#define DEBUG_HAL_IOC_RX               0
     77#define DEBUG_HAL_IOC_TX               0
     78
     79#define DEBUG_KCM                      0
     80#define DEBUG_KMEM                     0
     81
     82#define DEBUG_KERNEL_INIT              0
     83#define DEBUG_KMEM_ALLOC               0
     84
     85#define DEBUG_MAPPER_GET_PAGE          0
     86#define DEBUG_MAPPER_MOVE_USER         0
     87#define DEBUG_MAPPER_MOVE_KERNEL       0
     88
     89#define DEBUG_PPM_ALLOC_PAGES          0
     90#define DEBUG_PPM_FREE_PAGES           0
     91
     92#define DEBUG_PROCESS_COPY_INIT        0
     93#define DEBUG_PROCESS_DESTROY          0
     94#define DEBUG_PROCESS_GET_LOCAL_COPY   0
     95#define DEBUG_PROCESS_INIT_CREATE      0
     96#define DEBUG_PROCESS_MAKE_EXEC        0
     97#define DEBUG_PROCESS_MAKE_FORK        0
     98#define DEBUG_PROCESS_REFERENCE_INIT   0
     99#define DEBUG_PROCESS_SIGACTION        0
     100#define DEBUG_PROCESS_TXT_ATTACH       0
     101#define DEBUG_PROCESS_ZERO_CREATE      0
     102
     103#define DEBUG_RPC_CLIENT_GENERIC       0
     104#define DEBUG_RPC_SERVER_GENERIC       0
     105
     106#define DEBUG_RPC_PMEM_GET_PAGES       0
     107#define DEBUG_RPC_PMEM_RELEASE_PAGES   0
     108#define DEBUG_RPC_PROCESS_MAKE_FORK    0
     109#define DEBUG_RPC_PROCESS_SIGACTION    0
     110#define DEBUG_RPC_VFS_DENTRY_CREATE    0
     111#define DEBUG_RPC_VFS_DENTRY_DESTROY   0
     112#define DEBUG_RPC_VFS_FILE_CREATE      0
     113#define DEBUG_RPC_VFS_FILE_DESTROY     0
     114#define DEBUG_RPC_VMM_GET_PTE          0
     115#define DEBUG_RPC_VMM_GET_VSEG         0
     116
     117#define DEBUG_SCHED_HANDLE_SIGNALS     0
     118#define DEBUG_SCHED_YIELD              0
     119
     120#define DEBUG_SYSCALLS_ERROR           2
     121
     122#define DEBUG_SYS_DISPLAY              0
     123#define DEBUG_SYS_EXEC                 2
     124#define DEBUG_SYS_EXIT                 2
     125#define DEBUG_SYS_FG                   0
     126#define DEBUG_SYS_FORK                 2
     127#define DEBUG_SYS_GET_CONFIG           0
     128#define DEBUG_SYS_ISATTY               0
     129#define DEBUG_SYS_KILL                 2
     130#define DEBUG_SYS_MMAP                 0
     131#define DEBUG_SYS_READ                 0
     132#define DEBUG_SYS_THREAD_CANCEL        0
     133#define DEBUG_SYS_THREAD_CREATE        0
     134#define DEBUG_SYS_THREAD_EXIT          0
     135#define DEBUG_SYS_THREAD_JOIN          0
     136#define DEBUG_SYS_THREAD_SLEEP         0
     137#define DEBUG_SYS_THREAD_WAKEUP        0
     138#define DEBUG_SYS_WAIT                 0
     139#define DEBUG_SYS_WRITE                0
     140
     141#define DEBUG_SPINLOCKS                0
     142#define DEBUG_REMOTE_SPINLOCKS         0
     143#define DEBUG_RWLOCKS                  0
     144#define DEBUG_REMOTE_RWLOCKS           0
     145
     146#define DEBUG_THREAD_DESTROY           0
     147#define DEBUG_THREAD_IDLE              0
     148#define DEBUG_THREAD_KERNEL_CREATE     0
     149#define DEBUG_THREAD_KILL              0
     150#define DEBUG_THREAD_USER_CREATE       0
     151#define DEBUG_THREAD_USER_FORK         0
     152#define DEBUG_THREAD_BLOCK             0
     153
     154#define DEBUG_VFS_INODE_CREATE         0
     155#define DEBUG_VFS_INODE_LOAD           0
     156#define DEBUG_VFS_DENTRY_CREATE        0
     157#define DEBUG_VFS_OPEN                 0
     158#define DEBUG_VFS_LOOKUP               0
     159#define DEBUG_VFS_ADD_CHILD            0
     160#define DEBUG_VFS_MAPPER_MOVE          0
     161#define DEBUG_VFS_MAPPER_LOAD          0
     162
     163#define DEBUG_VMM_CREATE_VSEG          0
     164#define DEBUG_VMM_DESTROY              0
     165#define DEBUG_VMM_FORK_COPY            0
     166#define DEBUG_VMM_GET_ONE_PPN          0
     167#define DEBUG_VMM_GET_PTE              0
     168#define DEBUG_VMM_HANDLE_PAGE_FAULT    0
     169#define DEBUG_VMM_INIT                 0
     170#define DEBUG_VMM_PAGE_ALLOCATE        0
     171#define DEBUG_VMM_SET_COW              0
     172#define DEBUG_VMM_UNMAP_VSEG           0
     173#define DEBUG_VMM_UPDATE_PTE           0
    159174
    160175////////////////////////////////////////////////////////////////////////////////////////////
     
    258273#define CONFIG_REMOTE_FIFO_SLOTS                    16
    259274#define CONFIG_REMOTE_FIFO_MAX_ITERATIONS   1024
    260 
    261 #define CONFIG_RPC_PENDING_MAX              8      // max requests handled by one server
    262 #define CONFIG_RPC_THREADS_MAX              8      // max number of RPC threads per core
     275#define CONFIG_RPC_THREADS_MAX              4      // max number of RPC threads per core
    263276
    264277////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.