Fix for stack traces in the early boot process: The thread might not have
its stack top/bottom assigned yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a54549a8cd
commit
fe30b74fde
@ -391,6 +391,11 @@ is_kernel_stack_address(struct thread* thread, addr_t address)
|
||||
if (thread == NULL)
|
||||
return IS_KERNEL_ADDRESS(address);
|
||||
|
||||
// Also in the early boot process we might have a thread structure, but it
|
||||
// might not have its kernel stack attributes set yet.
|
||||
if (thread->kernel_stack_top == 0)
|
||||
return IS_KERNEL_ADDRESS(address);
|
||||
|
||||
return (address >= thread->kernel_stack_base
|
||||
&& address < thread->kernel_stack_top)
|
||||
|| (thread->cpu != NULL
|
||||
|
Loading…
Reference in New Issue
Block a user