aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/vof/bootmem.c
blob: 771b9e95f95d208dc1cd765712343bb708688f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "vof.h"

void boot_from_memory(uint64_t initrd, uint64_t initrdsize)
{
    uint64_t kern[2];
    phandle chosen = ci_finddevice("/chosen");

    if (ci_getprop(chosen, "qemu,boot-kernel", kern, sizeof(kern)) !=
        sizeof(kern)) {
        return;
    }

    do_boot(kern[0], initrd, initrdsize);
}