Also init kernel_stack_top for the idle threads. It was NULL before,

which caused stack traces in those threads to crash.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26746 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-08-02 23:50:14 +00:00
parent 771491bec8
commit a9d458d8db
+1
View File
@@ -2007,6 +2007,7 @@ thread_init(kernel_args *args)
panic("error finding idle kstack area\n");
thread->kernel_stack_base = (addr_t)info.address;
thread->kernel_stack_top = thread->kernel_stack_base + info.size;
hash_insert(sThreadHash, thread);
insert_thread_into_team(thread->team, thread);