Changeset bcdd9aa in mainline for src/proc/scheduler.c


Ignore:
Timestamp:
2005-08-30T09:44:07Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dfbc229
Parents:
a6f8899
Message:

Add lib/the.c.
Add and deploy the_initialize() and the_copy().

Make IA-32's before_thread_runs() use SP_DELTA macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/proc/scheduler.c

    ra6f8899 rbcdd9aa  
    253253
    254254        /*
     255         * Through the 'THE' structure, we keep track of THREAD, TASK, CPU
     256         * and preemption counter. At this point THE could be coming either
     257         * from THREAD's or CPU's stack.
     258         */
     259        the_copy(THE, (the_t *) CPU->stack);
     260
     261        /*
    255262         * We may not keep the old stack.
    256263         * Reason: If we kept the old stack and got blocked, for instance, in
     
    398405        #endif 
    399406
     407        the_copy(THE, (the_t *) THREAD->kstack);
     408       
    400409        context_restore(&THREAD->saved_context);
    401410        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.