1 #include <ip_checksum.h>
3 #include <boot/elf_boot.h>
5 #include <console/console.h>
7 extern void flush_dcache(void);
9 int elf_check_arch(Elf_ehdr *ehdr)
12 (ehdr->e_machine == EM_PPC) &&
13 (ehdr->e_ident[EI_CLASS] == ELFCLASS32) &&
14 (ehdr->e_ident[EI_DATA] == ELFDATA2MSB)
19 void jmp_to_elf_entry(void *entry, unsigned long buffer)
21 void (*kernel_entry)(void);
26 * Kernel will invalidate and disable dcache immediately on
27 * entry. This is bad if we've been using it, which we
28 * have. Make sure it is flushed to memory.
32 /* On ppc we don't currently support loading over LinuxBIOS.
33 * So ignore the buffer.