Changeset 32fffef0 in mainline for kernel/generic/src/main/kinit.c


Ignore:
Timestamp:
2006-08-29T11:06:57Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0fa6044
Parents:
c8ea4a8b
Message:

Define architecture-specific thread sub-constructors and sub-destructors on all architectures.
Define the THREAD_FLAG_USPACE which means that the thread runs in user space.
The forementioned changes allow for allocating of user window buffer on sparc64
threads that execute in userspace.

A lot of formatting and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    rc8ea4a8b r32fffef0  
    101101                 * Just a beautification.
    102102                 */
    103                 if ((t = thread_create(kmp, NULL, TASK, 0, "kmp"))) {
     103                if ((t = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp"))) {
    104104                        spinlock_lock(&t->lock);
    105                         t->flags |= X_WIRED;
    106105                        t->cpu = &cpus[0];
    107106                        spinlock_unlock(&t->lock);
     
    127126                for (i = 0; i < config.cpu_count; i++) {
    128127
    129                         if ((t = thread_create(kcpulb, NULL, TASK, 0, "kcpulb"))) {
     128                        if ((t = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb"))) {
    130129                                spinlock_lock(&t->lock);                       
    131                                 t->flags |= X_WIRED;
    132130                                t->cpu = &cpus[i];
    133131                                spinlock_unlock(&t->lock);
Note: See TracChangeset for help on using the changeset viewer.