diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-20 11:43:08 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-20 11:43:08 +0100 |
| commit | fb9627cc985912a57de8b4bedc98991e290e4075 (patch) | |
| tree | b7f0f72df6c6feb6beb672523afde5f793c87755 /kernel/dt.c | |
| parent | d3afdd9284f7e9838fbde4c941193ec2032d6a26 (diff) | |
| download | fbos-fb9627cc985912a57de8b4bedc98991e290e4075.tar.gz fbos-fb9627cc985912a57de8b4bedc98991e290e4075.zip | |
Fetch the initrd address from the DTB blob
The kernel entry has a pointer to the DTB blob as a parameter. From this
pointer we can parse the the DTB blob to find the properties
"chosen->linux,initrd-start" and "chosen->linux,initrd-start". These
properties are guaranteed to have 64-bit addresses which point where the
initrd is in memory, which we need to fetch the binaries to be loaded.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'kernel/dt.c')
| -rw-r--r-- | kernel/dt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/dt.c b/kernel/dt.c deleted file mode 100644 index 55fa970..0000000 --- a/kernel/dt.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <fbos/dt.h> - -__kernel void parse_dtb(uint64_t *dtb) -{ - __unused(dtb); -} |
