Home
last modified time | relevance | path

Searched refs:fdt_paddr (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs26 pub fdt_paddr: PhysAddr, field
35 fdt_paddr: PhysAddr::new(0),
44 return VirtAddr::new(self.fdt_paddr.data()); in arch_fdt()
54 unsafe extern "C" fn kernel_main(hartid: usize, fdt_paddr: usize) -> ! { in kernel_main()
55 let fdt_paddr = PhysAddr::new(fdt_paddr); in kernel_main() localVariable
59 BOOT_FDT_PADDR = fdt_paddr; in kernel_main()
99 let fdt_paddr = boot_params().read().arch.fdt_paddr; in parse_dtb() localVariable
100 if fdt_paddr.is_null() { in parse_dtb()
113 let fdt_paddr = unsafe { BOOT_FDT_PADDR }; in early_setup_arch() localVariable
116 unsafe { fdt::Fdt::from_ptr(fdt_paddr.data() as *const u8).expect("Failed to parse fdt!") }; in early_setup_arch()
[all …]
/DragonOS/kernel/src/arch/riscv64/driver/
H A Dof.rs15 let fdt_paddr = bp_guard.arch.fdt_paddr; in map_fdt() localVariable
17 let offset = fdt_paddr.data() & crate::arch::MMArch::PAGE_OFFSET_MASK; in map_fdt()
19 let map_paddr = PhysAddr::new(fdt_paddr.data() & crate::arch::MMArch::PAGE_MASK); in map_fdt()
/DragonOS/kernel/src/init/
H A Dboot.rs111 pub fn fdt_paddr(&self) -> Option<PhysAddr> { in fdt_paddr() method
113 return Some(self.arch.fdt_paddr); in fdt_paddr()
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs333 let fdt_paddr = boot_params().read().arch.fdt_paddr; in early_reserve_fdt_itself() localVariable
334 let rsvd_start = PhysAddr::new(page_align_down(fdt_paddr.data())); in early_reserve_fdt_itself()
335 let rsvd_size = page_align_up(fdt_paddr.data() - rsvd_start.data() + fdt.total_size()); in early_reserve_fdt_itself()