From e8beca2784ce6b981620c8a78683c22d1115a9f2 Mon Sep 17 00:00:00 2001 From: scPointer Date: Tue, 19 Mar 2024 21:35:06 +0800 Subject: [PATCH] remove panic when page fault --- modules/axmem/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/axmem/src/lib.rs b/modules/axmem/src/lib.rs index cbced643be..acc0036817 100644 --- a/modules/axmem/src/lib.rs +++ b/modules/axmem/src/lib.rs @@ -401,7 +401,7 @@ impl MemorySet { } None => { error!("Page fault address {:?} not found in memory set ", addr); - panic!("FIXME: Page fault shouldn't cause a panic in kernel."); + //panic!("FIXME: Page fault shouldn't cause a panic in kernel."); Err(AxError::BadAddress) } }