Changeset 654 for trunk/hal/generic
- Timestamp:
- Nov 14, 2019, 4:03:25 PM (5 years ago)
- Location:
- trunk/hal/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_context.h
r625 r654 49 49 50 50 /**************************************************************************************** 51 * This function initializes a CPU context from scratch. 51 * This function initializes the CPU context of the thread identified by the <thread> 52 * argument. All slots required to start a new thread must be initialized. 52 53 **************************************************************************************** 53 54 * @ thread : pointer on the thread descriptor. -
trunk/hal/generic/hal_switch.h
r457 r654 60 60 * It restore the calling CPU register values from a CPU context identified by <ctx>. 61 61 * The architecture specific hal_cpu_context_t structure used to store a CPU context 62 * is defined in the architecture specific hal_context.c file. 63 * When the restore is completed, it simply jumps to the address contained in ra_31. 64 * In ALMOS-MKH, ra_31 must contain a pointer on the eret() function, and c0_epc 65 * must contain the new main thread entry point. 62 * is defined in the architecture specific hal_context.c file. When the restore is 63 * completed, it jumps to the entry point of the new process main thread. 64 * 65 * Implementation Note : 66 * - on the TSAR architecture, register ra_31 must contain a pointer on the 67 * eret() function, and register c0_epc must contain the new thread entry point. 68 * - on I86 architecture TODO... 66 69 ************************************************************************************* 67 70 * @ ctx : local pointer on CPU context.
Note: See TracChangeset
for help on using the changeset viewer.