Changeset 43114c5 in mainline for src/main/main.c


Ignore:
Timestamp:
2005-04-09T18:22:53Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8262010
Parents:
e6ba9a3f
Message:

Introduce macros CPU, THREAD, TASK and use them to replace the→cpu, the→thread, the→task.
Later on, this will make it possible to reference *current* cpu, thread and/or task without the aid from virtual memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/main.c

    re6ba9a3f r43114c5  
    185185         * switch to this cpu's private stack prior to waking kmp up.
    186186         */
    187         the->cpu->saved_context.sp = (__address) &the->cpu->stack[CPU_STACK_SIZE-8];
    188         the->cpu->saved_context.pc = (__address) main_ap_separated_stack;
    189         context_restore(&the->cpu->saved_context);
     187        CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8];
     188        CPU->saved_context.pc = (__address) main_ap_separated_stack;
     189        context_restore(&CPU->saved_context);
    190190        /* not reached */
    191191}
Note: See TracChangeset for help on using the changeset viewer.