xref: /DragonOS/kernel/src/arch/riscv64/elf.rs (revision ce5850adbf74ec6c6717bbb5b1749f1fbff4ca0d)
1 use crate::{arch::MMArch, libs::elf::ElfArch, mm::MemoryManagementArch};
2 
3 #[derive(Debug, Clone, Copy, Hash)]
4 pub struct RiscV64ElfArch;
5 
6 impl ElfArch for RiscV64ElfArch {
7     const ELF_ET_DYN_BASE: usize = MMArch::USER_END_VADDR.data() / 3 * 2;
8 
9     const ELF_PAGE_SIZE: usize = MMArch::PAGE_SIZE;
10 }
11