Ignore:
Timestamp:
Aug 29, 2017, 12:03:37 PM (4 years ago)
Author:
alain
Message:

This version executed successfully the user "init" process on a mono-processor TSAR architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.h

    r367 r406  
    158158 * This TRDID is computed by the process_register_thread() function, when the user
    159159 * thread is registered in the local copy of the process descriptor.
     160 *
     161 * WARNING : Don't modify the first 4 fields order, as this order is used by the
     162 * hal_kentry assembly code for the TSAR architecture.
    160163 **************************************************************************************/
    161164
     
    164167typedef struct thread_s
    165168{
    166     void              * cpu_uzone;       /*! used for exception/interrupt/syscall     */
    167169        void              * cpu_context;     /*! used for context switch                  */
    168170        void              * fpu_context;     /*! used for dynamic FPU allocation          */
     171
     172        intptr_t            k_stack_base;    /*! kernel stack base address                */
     173        uint32_t            k_stack_size;    /*! kernel stack size (bytes)                */
    169174
    170175        uint32_t            trdid;           /*! thread index (cxy.ltid)                  */
     
    189194        intptr_t            u_stack_base;    /*! user stack base address                  */
    190195        uint32_t            u_stack_size;    /*! user stack size (bytes)                  */
    191         intptr_t            k_stack_base;    /*! kernel stack base address                */
    192         uint32_t            k_stack_size;    /*! kernel stack size (bytes)                */
    193196
    194197    void              * entry_func;      /*! pointer on entry function                */
Note: See TracChangeset for help on using the changeset viewer.