Changeset 17 for trunk/hal/generic/hal_context.h
- Timestamp:
- May 11, 2017, 7:49:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_context.h
r16 r17 29 29 // 30 30 // A thread context is defined by the two (core specific) structures hal_context_t 31 // and hal_uzone_t, defined 31 // and hal_uzone_t, defined in hal_context.c file, that are accessed with generic 32 32 // void* pointers stored in the thread descriptor. 33 33 // - the "hal_context_t" structure is used to store the CPU registers values that … … 87 87 /**************************************************************************************** 88 88 * This function allocates, from the local cluster, the physical memory required for 89 * the thread CPU context, initialises it, and link the context to the thread.89 * the thread CPU context, initialises it, and links the context to the thread. 90 90 * Seven registers are initialised: 91 91 * - sp_29 / fp_30 / ra_31 … … 101 101 * This function allocates, from the local cluster, the physical memory required for 102 102 * a thread CPU context, initialises it from values contained in "src" thread context, 103 * and link the context to the "dst" thread.103 * and links the context to the "dst" thread. 104 104 **************************************************************************************** 105 105 * @ dst : pointer on the destination thread descriptor. … … 118 118 119 119 /**************************************************************************************** 120 * This function save in the thread context the CPU registers values that have not120 * This function saves in the thread context the CPU registers values that have not 121 121 * been saved in the thread stack by the exception handler: 122 122 * - GRs : s0 to S7 , sp , fp, ra … … 129 129 130 130 /**************************************************************************************** 131 * This function restore from the thread context the CPU registers values that have not131 * This function restores from the thread context the CPU registers values that have not 132 132 * been saved in the thread stack by the exception handler. 133 133 * - GRs : s0 to S7 , sp , fp, ra … … 140 140 141 141 /**************************************************************************************** 142 * This function load the relevant CPU registers from values contained in142 * This function loads the relevant CPU registers from values contained in 143 143 * the thread context. It should be called for a thread that has not been executed yet. 144 144 * - GRs : sp , fp , a0 … … 182 182 183 183 /**************************************************************************************** 184 * This function save in the thread uzone the FPU registers values.184 * This function saves in the thread uzone the FPU registers values. 185 185 **************************************************************************************** 186 186 * @ thread : pointer on the thread descriptor. … … 189 189 190 190 /**************************************************************************************** 191 * This function restore from the thread uzone the FPU registers values.191 * This function restores from the thread uzone the FPU registers values. 192 192 **************************************************************************************** 193 193 * @ thread : pointer on the thread descriptor.
Note: See TracChangeset
for help on using the changeset viewer.