Luna/moon/src/init.rs

7 lines
201 B
Rust
Raw Normal View History

2022-10-31 14:34:32 +01:00
use crate::bootboot::{BOOTBOOT, BOOTBOOT_MAGIC};
use crate::util::get_bootboot;
pub fn check_magic() -> () {
let boot: BOOTBOOT = get_bootboot();
assert_eq!(boot.magic, BOOTBOOT_MAGIC[..4]);
}