Changeset cb4b61d in mainline for src


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

Added before_thread_runs() to cope with TSS of user space tasks.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.config

    r2968fe29 rcb4b61d  
    66
    77# Support for symetric multiprocessors
    8 SMP=__SMP__
     8#SMP=__SMP__
    99
    1010# Improved support for hyperthreading
  • src/proc/scheduler.c

    r2968fe29 rcb4b61d  
    202202                         * This is the place where threads leave scheduler();
    203203                         */
     204                        before_thread_runs();
    204205                        spinlock_unlock(&THREAD->lock);
    205206                        cpu_priority_restore(THREAD->saved_context.pri);
  • src/proc/thread.c

    r2968fe29 rcb4b61d  
    7070        void *arg = THREAD->thread_arg;
    7171
     72        before_thread_runs();
     73
    7274        /* this is where each thread wakes up after its creation */
    7375        spinlock_unlock(&THREAD->lock);
Note: See TracChangeset for help on using the changeset viewer.