AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
boot.h File Reference

Go to the source code of this file.

Functions

struct boot * fdt_boot (uintptr_t dtb)
 Reads the boot loader's devicetree into a struct boot.

Function Documentation

◆ fdt_boot()

struct boot * fdt_boot ( uintptr_t dtb)

Reads the boot loader's devicetree into a struct boot.

If there is no devicetree there, the struct boot is empty.

Parameters
dtbthe devicetree's physical address
Returns
the struct boot (static)

Definition at line 78 of file fdt.c.

References be32(), cells(), boot::cmdline, cmdline, FDT_BEGIN_NODE, fdt_boot(), FDT_END_NODE, FDT_MAGIC, FDT_NOP, FDT_PROP, fdt_header::magic, memcpy(), MIN, boot::mmap, mmap, boot::mmap_count, MMAP_MAX, MMAP_USABLE, boot::modules, modules, boot::modules_count, fdt_header::off_dt_strings, fdt_header::off_dt_struct, PHYS2VIRT, printk(), and boot::total_mem.

Referenced by aarch64_init(), and fdt_boot().