- Timestamp:
- Oct 10, 2020, 5:35:52 PM (4 years ago)
- Location:
- trunk/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/Makefile
r657 r667 83 83 build/kern/process.o \ 84 84 build/kern/chdev.o \ 85 build/kern/ socket.o\85 build/kern/ksocket.o \ 86 86 build/kern/cluster.o \ 87 87 build/kern/scheduler.o \ … … 293 293 # Rule to generate kernel.elf 294 294 build/kernel.elf: $(KERN_OBJS) \ 295 296 297 298 299 300 301 302 303 304 305 306 307 308 295 $(HAL_OBJS_0) \ 296 $(HAL_OBJS_1) \ 297 $(DEV_OBJS) \ 298 $(MM_OBJS) \ 299 $(LIBK_OBJS) \ 300 $(DRIVERS_OBJS) \ 301 $(VFS_OBJS) \ 302 $(SYS_OBJS_0) \ 303 $(SYS_OBJS_1) \ 304 $(SYS_OBJS_2) \ 305 $(SYS_OBJS_3) \ 306 $(SYS_OBJS_4) \ 307 $(SYS_OBJS_5) \ 308 $(HAL_ARCH)/kernel.ld 309 309 $(LD) -o $@ -T $(HAL_ARCH)/kernel.ld $(LIBGCC) \ 310 310 $(KERN_OBJS) $(HAL_OBJS) $(DEV_OBJS) $(MM_OBJS) \ -
trunk/kernel/kernel_config.h
r657 r667 2 2 * kernel_config.h - global kernel configuration arguments 3 3 * 4 * Authors Alain Greiner (2016,2017,2018,2019 )4 * Authors Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 36 36 #define DEBUG_BARRIER_WAIT 0 37 37 38 #define DEBUG_BUSYLOCK 39 #define DEBUG_BUSYLOCK_PID 0 // for busylock detailed debug40 #define DEBUG_BUSYLOCK_TRDID 0 // for busylock detailed debug38 #define DEBUG_BUSYLOCK_TYPE 0 39 #define DEBUG_BUSYLOCK_PID 0 40 #define DEBUG_BUSYLOCK_TRDID 0 41 41 42 42 #define DEBUG_CHDEV_CMD_RX 0 … … 55 55 #define DEBUG_DEV_IOC_TX 0 56 56 #define DEBUG_DEV_NIC_RX 0 57 #define DEBUG_DEV_NIC_ RX 057 #define DEBUG_DEV_NIC_TX 0 58 58 #define DEBUG_DEV_FBF 0 59 59 #define DEBUG_DEV_DMA 0 … … 96 96 #define DEBUG_HAL_CONTEXT_INIT 0 97 97 #define DEBUG_HAL_EXCEPTIONS 0 98 #define DEBUG_HAL_FBF 0 98 99 #define DEBUG_HAL_GPT_COPY 0 99 100 #define DEBUG_HAL_GPT_CREATE 0 … … 106 107 #define DEBUG_HAL_IRQS 0 107 108 #define DEBUG_HAL_KENTRY 0 109 #define DEBUG_HAL_NIC_RX 0 110 #define DEBUG_HAL_NIC_TX 0 108 111 #define DEBUG_HAL_TXT_RX 0 109 112 #define DEBUG_HAL_TXT_TX 0 110 #define DEBUG_HAL_FBF 0111 113 #define DEBUG_HAL_USPACE 0 112 114 #define DEBUG_HAL_VMM 0 … … 137 139 #define DEBUG_PROCESS_DESTROY 0 138 140 #define DEBUG_PROCESS_FD_REGISTER 0 141 #define DEBUG_PROCESS_FD_REMOVE 0 142 #define DEBUG_PROCESS_FD_CLEAN_ALL 0 139 143 #define DEBUG_PROCESS_GET_LOCAL_COPY 0 140 144 #define DEBUG_PROCESS_INIT_CREATE 0 … … 146 150 #define DEBUG_PROCESS_ZERO_CREATE 0 147 151 148 #define DEBUG_QUEUELOCK_TYPE 0 // lock type 0 isundefined => no debug152 #define DEBUG_QUEUELOCK_TYPE 0 // type 0 undefined => no debug 149 153 #define DEBUG_QUEUELOCK_PTR 0 150 154 #define DEBUG_QUEUELOCK_CXY 0 … … 165 169 #define DEBUG_RPC_VMM_SET_COW 0 166 170 167 #define DEBUG_RWLOCK_TYPE 0 // lock type 0 isundefined => no debug171 #define DEBUG_RWLOCK_TYPE 0 // type 0 undefined => no debug 168 172 #define DEBUG_RWLOCK_PTR 0 169 173 #define DEBUG_RWLOCK_CXY 0 … … 174 178 175 179 #define DEBUG_SEM 0 180 181 #define DEBUG_SOCKET_ACCEPT 0 182 #define DEBUG_SOCKET_BIND 0 183 #define DEBUG_SOCKET_BUILD 0 184 #define DEBUG_SOCKET_CLOSE 0 185 #define DEBUG_SOCKET_CONNECT 0 186 #define DEBUG_SOCKET_CREATE 0 187 #define DEBUG_SOCKET_DESTROY 0 188 #define DEBUG_SOCKET_LISTEN 0 189 #define DEBUG_SOCKET_RECV 0 190 #define DEBUG_SOCKET_SEND 0 191 #define DEBUG_SOCKET_LINK 0 176 192 177 193 #define DEBUG_SYSCALLS_ERROR 2 … … 207 223 #define DEBUG_SYS_READDIR 0 208 224 #define DEBUG_SYS_SEM 0 225 #define DEBUG_SYS_SOCKET 0 209 226 #define DEBUG_SYS_STAT 0 210 227 #define DEBUG_SYS_THREAD_CANCEL 0 … … 301 318 #define LOCK_PROCESS_CWD 19 // remote (B) protect current working directory in process 302 319 #define LOCK_BARRIER_STATE 20 // remote (B) protect user barrier state 303 304 #define LOCK_CLUSTER_PREFTBL 21 // local (Q) protect array of ref. processes in cluster 305 306 #define LOCK_PPM_DIRTY 22 // remote (Q) protect PPM dirty_pages list 307 #define LOCK_CLUSTER_LOCALS 23 // remote (Q) protect xlist of local processes in cluster 308 #define LOCK_CLUSTER_COPIES 24 // remote (Q) protect xlist of process copies in cluster 309 #define LOCK_PROCESS_CHILDREN 25 // remote (Q) protect xlist of chidren process in process 310 #define LOCK_PROCESS_USERSYNC 26 // remote (Q) protect lists of user synchros in process 311 #define LOCK_PROCESS_FDARRAY 27 // remote (Q) protect array of open files in owner process 312 #define LOCK_PROCESS_DIR 28 // remote (Q) protect xlist of open directories in process 313 #define LOCK_VMM_VSL 29 // remote (Q) protect VSL (local list of vsegs) 314 315 #define LOCK_PROCESS_THTBL 30 // local (RW) protect local array of threads in a process 316 317 #define LOCK_MAPPER_STATE 31 // remote (RW) protect mapper state 318 #define LOCK_VFS_SIZE 32 // remote (RW) protect inode state and associated mapper 319 #define LOCK_VFS_FILE 33 // remote (RW) protect file descriptor state 320 #define LOCK_VFS_MAIN 34 // remote (RW) protect vfs traversal (in root inode) 321 #define LOCK_FATFS_FAT 35 // remote (RW) protect exclusive access to the VFS FAT 322 #define LOCK_FBF_WINDOWS 36 // remote (RW) protect FBF windows set 320 #define LOCK_LISTEN_SOCKET 21 // remote (B) protect xlist of listening sockets 321 322 #define LOCK_CLUSTER_PREFTBL 22 // local (Q) protect array of ref. processes in cluster 323 324 #define LOCK_SOCKET_STATE 23 // remote (Q) protect kernel socket state 325 #define LOCK_PPM_DIRTY 24 // remote (Q) protect PPM dirty_pages list 326 #define LOCK_CLUSTER_LOCALS 25 // remote (Q) protect xlist of local processes in cluster 327 #define LOCK_CLUSTER_COPIES 26 // remote (Q) protect xlist of process copies in cluster 328 #define LOCK_PROCESS_CHILDREN 27 // remote (Q) protect xlist of chidren process in process 329 #define LOCK_PROCESS_USERSYNC 28 // remote (Q) protect lists of user synchros in process 330 #define LOCK_PROCESS_FDARRAY 29 // remote (Q) protect array of open files in owner process 331 #define LOCK_PROCESS_DIR 30 // remote (Q) protect xlist of open directories in process 332 #define LOCK_VMM_VSL 31 // remote (Q) protect VSL (local list of vsegs) 333 334 #define LOCK_PROCESS_THTBL 32 // local (RW) protect local array of threads in a process 335 336 #define LOCK_MAPPER_STATE 33 // remote (RW) protect mapper state 337 #define LOCK_VFS_SIZE 34 // remote (RW) protect inode state and associated mapper 338 #define LOCK_VFS_FILE 35 // remote (RW) protect file descriptor state 339 #define LOCK_VFS_MAIN 36 // remote (RW) protect vfs traversal (in root inode) 340 #define LOCK_FATFS_FAT 37 // remote (RW) protect exclusive access to the VFS FAT 341 #define LOCK_FBF_WINDOWS 38 // remote (RW) protect FBF windows set 323 342 324 343 //////////////////////////////////////////////////////////////////////////////////////////// … … 361 380 #define CONFIG_CPU_CTX_SIZE 256 // up to 64 uint32_t registers 362 381 #define CONFIG_FPU_CTX_SIZE 256 // up to 32 uint64_t registers 363 #define CONFIG_NIC_CHBUF_DEPTH 1 // number of containers in NIC chbuf364 382 365 383 ////////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.