Changes between Version 70 and Version 71 of boot_procedure
- Timestamp:
- Dec 7, 2019, 6:22:31 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
boot_procedure
v70 v71 136 136 == D) __Generic kernel initialization procedure__ == 137 137 138 The kernel_init() function is the kernel entry point when the boot_loader transfers control to the kernel. The argument is a pointer on the fixed size boot_info _tstructure, stored in the local ''kdata'' segment.138 The kernel_init() function is the kernel entry point when the boot_loader transfers control to the kernel. The argument is a pointer on the fixed size boot_info structure, stored in the local ''kdata'' segment. 139 139 140 140 The source code for this function is defined in the [https://www-soc.lip6.fr/trac/almos-mkh/browser/trunk/kernel/kern/kernel_init.c almos-mkh/kernel/kern/kernel_init.c] file. … … 196 196 === D5) Internal & external devices initialization === 197 197 198 In each cluster, the core[0] makes the devices initialization. For multi-channels devices, there is one channel device (called chdev_t) per channel. 198 In each cluster[cxy], the core[cxy][0] makes the devices initialization (device == peripheral). 199 200 For multi-channels devices, there is one channel device (called chdev) per channel. For each chdev, almost-mkh creates a dedicate kernel DEV thread, that is in charge of executing all requests targeting this ''chdev'', registered in a dedicated associated waiting queue. The chdev API is defined in the [https://www-soc.lip6.fr/trac/almos-mkh/browser/trunk/kernel/kern/chdev.h almos-mkh/kernel/kern/chdev.h] and [https://www-soc.lip6.fr/trac/almos-mkh/browser/trunk/kernel/kern/chdev.c almos-mkh/kernel/kern/chdev.c] files. 201 199 202 For internal (replicated) devices, the chdev descriptors are allocated in the local cluster. For external (shared) devices, the chdev descriptors are regularly distributed on all clusters. These external chdev are indexed by a global index, and the host cluster is computed from this index by a modulo. 200 203