Function kernel_loaded_offset

Source
pub fn kernel_loaded_offset() -> usize
Expand description

The kernel code is linear mapped to this address.

FIXME: This offset should be randomly chosen by the loader or the boot compatibility layer. But we disabled it because OSTD doesn’t support relocatable kernel yet.