rework the kernel offset

This commit is contained in:
bunnie 2024-04-26 18:19:59 +08:00
parent 6c2cb85a44
commit d85ff12ca2

View file

@ -10,7 +10,7 @@ pub extern "C" fn _start(_kernel_args: usize, loader_sig: usize) {
#[cfg(any(feature = "precursor", feature = "renode"))]
let _kernel_args = _kernel_args;
#[cfg(any(feature = "cramium-soc", feature = "cramium-fpga"))]
let _kernel_args = _start as *const usize as usize + platform::KERNEL_OFFSET;
let _kernel_args = platform::FLASH_BASE + platform::KERNEL_OFFSET;
unsafe {
#[rustfmt::skip]
asm! (