From 32eb34f22620c8e9f207fe33b7c92e91aef7daa9 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 9 Apr 2024 21:58:49 +0100 Subject: [PATCH] fix panic renderer --- agb/src/panics_render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/panics_render.rs b/agb/src/panics_render.rs index e8edd5ca..190463e9 100644 --- a/agb/src/panics_render.rs +++ b/agb/src/panics_render.rs @@ -6,13 +6,13 @@ use crate::{ backtrace, display::{bitmap3::Bitmap3, busy_wait_for_vblank, HEIGHT, WIDTH}, dma::dma3_exclusive, - interrupt, mgba, syscall, + mgba, syscall, }; mod text; pub fn render_backtrace(trace: &backtrace::Frames, info: &PanicInfo) -> ! { - interrupt::free(|_cs| { + critical_section::with(|_cs| { dma3_exclusive(|| { // SAFETY: This is not fine, but we're crashing anyway. The loop at the end should stop anything bad happening let mut gba = unsafe { crate::Gba::new_in_entry() };