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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user