Skip to main content

kernel/cpu/
instructions.rs

1// SPDX-License-Identifier: GPL-3.0-only
2//! Common wrappers around arch-specific wrappers of CPU instructions
3//!
4//! Authors: MarioS271
5
6#[cfg(target_arch = "x86_64")] pub use crate::arch::x86_64::cpu::instructions::*;
7
8/// Calls [`halt_cpu`] in an infinite loop
9pub fn halt_forever() -> ! {
10    loop {
11        halt_cpu();
12    }
13}