Changeset View
Changeset View
Standalone View
Standalone View
head/stand/powerpc/ofw/ppc64_elf_freebsd.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | ppc64_ofw_elf_exec(struct preloaded_file *fp) | ||||
if ((e->e_flags & 3) == 2) | if ((e->e_flags & 3) == 2) | ||||
entry = e->e_entry; | entry = e->e_entry; | ||||
else | else | ||||
entry = *(uint64_t *)(intptr_t)e->e_entry; | entry = *(uint64_t *)(intptr_t)e->e_entry; | ||||
if ((error = md_load64(fp->f_args, &mdp, &dtbp)) != 0) | if ((error = md_load64(fp->f_args, &mdp, &dtbp)) != 0) | ||||
return (error); | return (error); | ||||
printf("Kernel entry at 0x%lx ...\n", entry); | printf("Kernel entry at 0x%x ...\n", entry); | ||||
dev_cleanup(); | dev_cleanup(); | ||||
if (dtbp != 0) { | if (dtbp != 0) { | ||||
OF_quiesce(); | OF_quiesce(); | ||||
((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp, | ((int (*)(u_long, u_long, u_long, void *, u_long))entry)(dtbp, | ||||
0, 0, (void *)mdp, 0xfb5d104d); | 0, 0, (void *)mdp, 0xfb5d104d); | ||||
} else { | } else { | ||||
Show All 12 Lines |