Ignore:
Timestamp:
Aug 27, 2018, 4:32:38 AM (6 years ago)
Author:
viala@…
Message:

[thread.c] Fix we forgot to assign thread->type.

Alain and I forgot to rewrite the function who call process_register_thread.
So we passed a thread with an uninitialized thread->type field.

File:
1 edited

Legend:

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

    r503 r518  
    151151
    152152    // register new thread in process descriptor, and get a TRDID
     153    thread->type = type; // needed by process_register_thread.
    153154    error = process_register_thread( process, thread , &trdid );
    154155
     
    164165        // Initialize new thread descriptor
    165166    thread->trdid           = trdid;
    166         thread->type            = type;
    167167    thread->quantum         = 0;            // TODO
    168168    thread->ticks_nr        = 0;            // TODO
Note: See TracChangeset for help on using the changeset viewer.