Changeset 683 for trunk/kernel/kern/core.h
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/core.h
r669 r683 39 39 40 40 /**************************************************************************************** 41 * This structure defines the core descriptor. 42 * Besides the core identifiers (gid,lid), it contains an embedded private scheduler. 41 * This structure defines a core descriptor. 42 * Besides the core identifiers (gid,lid), it contains an embedded private scheduler 43 * and a software cycles counter on 64 bits. 44 * It contains also the root of local list of alarms, dynamically registered by the 45 * threads running on this core. This local list is protected by a remote_busylock, 46 * because it can be accessed by any thread, running in any cluster, and using the 47 * access functions defined in the <alarm.c> & <alarm.h> files. 43 48 * It contains an architecture specific extension to store the interrupt vector(s). 44 49 * The core_init()function must allocate memory for this extension, depending on the … … 51 56 gid_t gid; /*! core global identifier (hardware index) */ 52 57 58 scheduler_t scheduler; /*! embedded private scheduler */ 59 53 60 uint64_t cycles; /*! total number of cycles (from hard reset) */ 54 61 uint32_t time_stamp; /*! previous time stamp (read from register) */ 55 62 56 63 list_entry_t alarms_root; /*! root of list of attached alarms */ 57 busylock_talarms_lock; /*! lock protecting the list of alarms */64 remote_busylock_t alarms_lock; /*! lock protecting the list of alarms */ 58 65 59 66 uint32_t ticks_nr; /*! number of elapsed ticks */ 60 67 uint32_t usage; /*! cumulated busy_percent (idle / total) */ 61 uint32_t spurious_irqs; /*! for instrumentation... */62 68 struct thread_s * fpu_owner; /*! pointer on current FPU owner thread */ 63 69 uint32_t rand_last; /*! last computed random value */ 64 65 scheduler_t scheduler; /*! embedded private scheduler */66 70 67 71 void * pic_extend; /*! PIC implementation specific extension */
Note: See TracChangeset
for help on using the changeset viewer.