diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index e20a9d84a0..2992d7c61a 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -1147,8 +1147,7 @@ arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount, if (frame == NULL) return 0; - bp = frame->bp; - onKernelStack = false; + bp = (addr_t)frame; } while (bp != 0 && count < maxCount) {