Conversation

Charlotte 🦝 therian

does someone have access to an ice lake or newer xeon or a zen4+ epyc or threadripper pro

maybe a tall ask but can you please run this on your system and tell me what the output is? After startup it should output a hexadecimal value to the screen and serial and reboot after 10 seconds


kldr.efi
kldr.pdb
1
2
0

source code is

#![no_main]
#![no_std]

extern crate alloc;

use core::arch::asm;

use log::info;
use uefi::prelude::*;

#[must_use]
pub fn get_cr4() -> u64 {
    let cr4: u64;
    unsafe {
        asm!("mov {0}, cr4", out(reg) cr4, options(nostack, nomem));
    }
    cr4
}

#[entry]
fn main(_image_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
    uefi::helpers::init(&mut system_table).unwrap();
    info!("CR4 value is 0x{:X}", get_cr4());
    system_table.boot_services().stall(10_000_000);
    Status::SUCCESS
}
0
0
0