3 ms·
>In particular it is still in the stage where knowledge about the platform has to be hard coded rather than probed at runtime. Avoidance of fixed memory addres
by snvzz 3y ago
>In particular it is still in the stage where knowledge about the platform has to be hard coded rather than probed at runtime.
Avoidance of fixed memory addresses is intentional and by design.
The boot and platform specifications cover how to deal with this.
In its simplest form, when your code runs, you get a pointer to a DTB in a specific register.
More complex variants include the RISC-V UEFI protocol (ratified) as well as the (work in progress spec) ACPI protocol.