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.
21 lines
598 B
21 lines
598 B
#include "vof.h"
|
|
|
|
void do_boot(unsigned long addr, unsigned long _r3, unsigned long _r4)
|
|
{
|
|
register unsigned long r3 __asm__("r3") = _r3;
|
|
register unsigned long r4 __asm__("r4") = _r4;
|
|
register unsigned long r5 __asm__("r5") = (unsigned long) _prom_entry;
|
|
|
|
((void (*)(void))(uint32_t)addr)();
|
|
}
|
|
|
|
void entry_c(void)
|
|
{
|
|
register unsigned long r3 __asm__("r3");
|
|
register unsigned long r4 __asm__("r4");
|
|
register unsigned long r5 __asm__("r5");
|
|
uint64_t initrd = r3, initrdsize = r4;
|
|
|
|
boot_from_memory(initrd, initrdsize);
|
|
ci_panic("*** No boot target ***\n");
|
|
}
|
|
|