// Copyright (c) 2025 shibedrill // SPDX-License-Identifier: GPL-3.0-or-later /// Critical section: Mark a section of code as critical. /// Interrupts will be disabled until the section completes. #[macro_export] macro_rules! critical_section { ($b:block) => { $crate::arch::asm::interrupt_disable(); $b $crate::arch::asm::interrupt_enable(); }; }