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

euh...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.