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