Lines Matching defs:kernel
68 int kernel;
92 const char *__elfN(kerneltype) = "elf kernel";
391 * kernel. This assumption will be checked later.
394 ef.kernel = 1;
396 if (ef.kernel || ehdr->e_type == ET_EXEC) {
397 /* Looks like a kernel */
400 "_loadfile: kernel already loaded\n");
405 * Calculate destination address based on kernel entrypoint.
408 * in the elf header (an ARM kernel can be loaded at any 2MB
418 "_loadfile: not a kernel (maybe static binary?)\n");
422 ef.kernel = 1;
434 "_loadfile: can't load module before kernel\n");
440 "_loadfile: can't load module with kernel type '%s'\n",
446 ef.kernel = 0;
468 if (ef.kernel == 1 && multiboot == 0)
472 fp->f_type = strdup(ef.kernel ?
475 fp->f_type = strdup("elf multiboot kernel");
478 if (ef.kernel)
562 if (ef->kernel) {
576 * On the purely virtual memory machines like e500, the kernel
578 * not available at the loader stage, but only after kernel
587 * hardcoded. Note that the Book-E kernel assumes that
603 * address the kernel was linked at. We subtract that from the
608 * the kernel by just jumping to that address.
627 if (ef->kernel)
725 * We need to tell the kernel where it is so that it can call the
929 if (ef->kernel) /* kernel must not depend on anything */
1008 if (ef.kernel == 1 || ef.ehdr->e_type == ET_EXEC) {
1009 ef.kernel = 1;
1179 if (ef->kernel) /* kernel must not depend on anything */
1291 * The kernel is already relocated, but we still want to apply
1294 if (ef->kernel)