Changeset 669 for trunk/kernel/kern/core.h
- Timestamp:
- Nov 19, 2020, 11:44:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/core.h
r657 r669 28 28 #include <kernel_config.h> 29 29 #include <hal_kernel_types.h> 30 #include <busylock.h> 30 31 #include <list.h> 31 32 #include <rpc.h> … … 36 37 struct thread_s; 37 38 struct chdev_s; 38 enum pic_impl_e;39 39 40 40 /**************************************************************************************** … … 54 54 uint32_t time_stamp; /*! previous time stamp (read from register) */ 55 55 56 list_entry_t alarms_root; /*! root of list of attached alarms */ 57 busylock_t alarms_lock; /*! lock protecting the list of alarms */ 58 56 59 uint32_t ticks_nr; /*! number of elapsed ticks */ 57 60 uint32_t usage; /*! cumulated busy_percent (idle / total) */ … … 70 73 * It makes the association [gid] <=> [lid], as defined in arch_info, via the 71 74 * boot_info_t structure build by the bootloader in each cluster. 72 * It allocates memory for the PIC infrastructure specific core extension.73 * It does NOT initialize the <thread_idle> and the <pic_extend> fields,74 * that must be completed later.75 * It initializes the core scheduler structures, and the alarms list and lock. 76 * It allocates memory for the PIC infrastructure specific core extension, 77 * but it does NOT initialize the <pic_extend> fields, that must be completed later. 75 78 *************************************************************************************** 76 79 * @ core : pointer on core descriptor to initialise. … … 84 87 /*************************************************************************************** 85 88 * This function returns the calling core local index (lid), making an associative 86 * in the local core_tbl[] arraybased on the hardwired (gid).89 * search in the local core_tbl[] array, based on the hardwired (gid). 87 90 *************************************************************************************** 88 91 * @ returns always the lid value. … … 113 116 /*************************************************************************************** 114 117 * This function must be called at each TICK. 115 * It updates the cycles and ticks counter in the calling core descriptor. 116 * It handles all pending alarms depending on the ticks counter value. 117 * It handles the scheduling, depending on the ticks counter value. 118 * It handles the global DQDT update, depending on the ticks counter vakue. 118 * - it updates the ticks counter in the calling core descriptor. 119 * - it checks the registered alarms depending on the ticks counter value. 120 * - it calls the scheduler, depending on the ticks counter value. 119 121 *************************************************************************************** 120 122 * @ core : pointer on core descriptor.
Note: See TracChangeset
for help on using the changeset viewer.