someboot 0.2.2

Sparreal OS kernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! sym_running_addr {
    ($sym:expr) => {
        {
            #[allow(unused_unsafe)]
            unsafe{
                let out: usize;
                core::arch::asm!(
                    concat!("la.pcrel    {r}, ", stringify!($sym)),
                    r = out(reg) out,
                );
                out
            }
        }
    };
}