QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
311 B

#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);
}