Changeset 654 for trunk/hal/generic


Ignore:
Timestamp:
Nov 14, 2019, 4:03:25 PM (3 years ago)
Author:
alain
Message:

euh...

Location:
trunk/hal/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_context.h

    r625 r654  
    4949
    5050/****************************************************************************************
    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.
    5253 ****************************************************************************************
    5354 * @ thread  : pointer on the thread descriptor.
  • trunk/hal/generic/hal_switch.h

    r457 r654  
    6060 * It restore the calling CPU register values from a CPU context identified by <ctx>.
    6161 * 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...
    6669 *************************************************************************************
    6770 * @ ctx     : local pointer on CPU context.
Note: See TracChangeset for help on using the changeset viewer.