use semx_rt_define::aarch64::{KIMAGE_START, KIO_VADDR, KMEM_VADDR, KPAGE_VADDR};
unsafe extern "C" {
static _text: usize;
static _end: usize;
static _stack_end: usize;
}
#[inline(always)]
pub(super) fn arch_start_text() -> usize {
core::ptr::addr_of!(_text) as usize
}
#[inline(always)]
pub(super) fn arch_end_bss() -> usize {
core::ptr::addr_of!(_end) as usize
}
#[inline(always)]
pub(super) fn arch_init_stack_base() -> usize {
core::ptr::addr_of!(_stack_end) as usize
}
pub(super) const ARCH_KIMAGE_OFFSET: usize = KIMAGE_START;
pub(super) const ARCH_KIO_OFFSET: usize = KIO_VADDR;
pub(super) const ARCH_KMEM_OFFSET: usize = KMEM_VADDR;
pub(super) const ARCH_KPAGE_OFFSET: usize = KPAGE_VADDR;