Fix profiling stack trace bp bounds checking.

This commit is contained in:
4lDO2
2024-04-04 15:45:47 +02:00
parent 68e072aac9
commit fbaa93e8fa
+2 -2
View File
@@ -175,8 +175,8 @@ pub unsafe fn nmi_handler(stack: &InterruptStack) {
let mut len = 2;
for i in 2..32 {
if bp.saturating_add(16) < crate::KERNEL_HEAP_OFFSET
|| bp >= crate::KERNEL_HEAP_OFFSET + crate::PML4_SIZE
if bp < crate::PHYS_OFFSET
|| bp.saturating_add(16) >= crate::PHYS_OFFSET + crate::PML4_SIZE
{
break;
}