Subversion Repositories HelenOS-historic

Rev

Rev 1705 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1705 Rev 1729
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup main
29
/** @addtogroup main
30
 * @{
30
 * @{
31
 */
31
 */
32
 
32
 
33
/**
33
/**
34
 * @file
34
 * @file
Line 104... Line 104...
104
            spinlock_lock(&t->lock);
104
            spinlock_lock(&t->lock);
105
            t->flags |= X_WIRED;
105
            t->flags |= X_WIRED;
106
            t->cpu = &cpus[0];
106
            t->cpu = &cpus[0];
107
            spinlock_unlock(&t->lock);
107
            spinlock_unlock(&t->lock);
108
            thread_ready(t);
108
            thread_ready(t);
109
        }
-
 
110
        else {
109
        } else
111
            panic("thread_create/kmp\n");
110
            panic("thread_create/kmp\n");
112
        }
-
 
113
        thread_join(t);
111
        thread_join(t);
114
        thread_detach(t);
112
        thread_detach(t);
115
    }
113
    }
116
#endif /* CONFIG_SMP */
114
#endif /* CONFIG_SMP */
117
    /*
115
    /*
Line 132... Line 130...
132
                spinlock_lock(&t->lock);           
130
                spinlock_lock(&t->lock);           
133
                t->flags |= X_WIRED;
131
                t->flags |= X_WIRED;
134
                t->cpu = &cpus[i];
132
                t->cpu = &cpus[i];
135
                spinlock_unlock(&t->lock);
133
                spinlock_unlock(&t->lock);
136
                thread_ready(t);
134
                thread_ready(t);
137
            }
135
            } else
138
            else panic("thread_create/kcpulb\n");
136
                panic("thread_create/kcpulb\n");
139
 
137
 
140
        }
138
        }
141
    }
139
    }
142
#endif /* CONFIG_SMP */
140
#endif /* CONFIG_SMP */
143
 
141
 
Line 193... Line 191...
193
    }
191
    }
194
#endif /* CONFIG_TEST */
192
#endif /* CONFIG_TEST */
195
 
193
 
196
}
194
}
197
 
195
 
198
 /** @}
196
/** @}
199
 */
197
 */
200
 
-