Lines Matching defs:kernel
72 int kernel;
87 const char *__elfN(kerneltype) = "elf kernel";
299 * kernel. This assumption will be checked later.
302 ef.kernel = 1;
304 if (ef.kernel || ehdr->e_type == ET_EXEC) {
305 /* Looks like a kernel */
308 "_loadfile: kernel already loaded\n");
313 * Calculate destination address based on kernel entrypoint.
316 * in the elf header (an ARM kernel can be loaded at any 2MB
326 "_loadfile: not a kernel (maybe static binary?)\n");
330 ef.kernel = 1;
342 "_loadfile: can't load module before kernel\n");
348 "_loadfile: can't load module with kernel type '%s'\n",
354 ef.kernel = 0;
376 if (ef.kernel == 1 && multiboot == 0)
380 fp->f_type = strdup(ef.kernel ?
383 fp->f_type = strdup("elf multiboot kernel");
386 if (ef.kernel)
463 * On the purely virtual memory machines like e500, the kernel
465 * not available at the loader stage, but only after kernel
474 * hardcoded. Note that the Book-E kernel assumes that
490 * address the kernel was linked at. We subtract that from the
495 * the kernel by just jumping to that address.
515 if (ef->kernel)
614 * We need to tell the kernel where it is so that it can call the
741 /* On PowerPC we always need to provide BE data to the kernel */
840 if (ef->kernel) /* kernel must not depend on anything */
919 if (ef.kernel == 1 || ef.ehdr->e_type == ET_EXEC) {
920 ef.kernel = 1;
1078 if (ef->kernel) /* kernel must not depend on anything */
1186 * The kernel is already relocated, but we still want to apply
1189 if (ef->kernel)