Changeset 3e1607f in mainline


Ignore:
Timestamp:
2005-08-31T22:00:32Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd95d784
Parents:
d2bb9f8a
Message:

Add some comments.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/exception.c

    rd2bb9f8a r3e1607f  
    4040        __u32 epc_shift = 0;
    4141        pri_t pri;
    42        
     42
     43        /*
     44         * NOTE ON OPERATION ORDERING
     45         *
     46         * On entry, cpu_priority_high() must be called before exception bit is cleared.
     47         * On exit, exception bit must be set before cpu_priority_restore() is called.
     48         */
     49
    4350        pri = cpu_priority_high();
    4451        epc = cp0_epc_read();
  • src/proc/scheduler.c

    rd2bb9f8a r3e1607f  
    136136                        continue;
    137137                }
    138        
     138
    139139                /* avoid deadlock with relink_rq() */
    140140                if (!spinlock_trylock(&CPU->lock)) {
     
    413413        #endif 
    414414
     415        /*
     416         * Copy the knowledge of CPU, TASK, THREAD and preemption counter to thread's stack.
     417         */
    415418        the_copy(THE, (the_t *) THREAD->kstack);
    416419       
  • src/proc/thread.c

    rd2bb9f8a r3e1607f  
    7676        void *arg = THREAD->thread_arg;
    7777
     78        /* this is where each thread wakes up after its creation */
    7879        before_thread_runs();
    7980
    80         /* this is where each thread wakes up after its creation */
    8181        spinlock_unlock(&THREAD->lock);
    8282        cpu_priority_low();
Note: See TracChangeset for help on using the changeset viewer.