Skip to content

Commit dfe8a3a

Browse files
unwind::stack_trace: add irq guard
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent f21d239 commit dfe8a3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aero_kernel/src/unwind.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ impl UnwindInfo {
7373
}
7474

7575
pub fn unwind_stack_trace() {
76+
let _guard = IrqGuard::new();
77+
7678
let mut address_space = AddressSpace::this();
7779
let offset_table = address_space.offset_page_table();
7880

@@ -158,6 +160,7 @@ pub fn unwind_stack_trace() {
158160

159161
#[cfg(feature = "ci")]
160162
use crate::emu;
163+
use crate::utils::sync::IrqGuard;
161164

162165
#[panic_handler]
163166
extern "C" fn rust_begin_unwind(info: &PanicInfo) -> ! {

0 commit comments

Comments
 (0)