Lines Matching refs:kernel
71 int kernel;
83 const char *__elfN(kerneltype) = "elf kernel";
147 * kernel. This assumption will be checked later.
150 ef.kernel = 1;
152 if (ef.kernel || ehdr->e_type == ET_EXEC) {
153 /* Looks like a kernel */
155 printf("elf" __XSTRING(__ELF_WORD_SIZE) "_loadfile: kernel already loaded\n");
160 * Calculate destination address based on kernel entrypoint.
163 * elf header (an ARM kernel can be loaded at any 2MB boundary), so we
172 printf("elf" __XSTRING(__ELF_WORD_SIZE) "_loadfile: not a kernel (maybe static binary?)\n");
176 ef.kernel = 1;
181 printf("elf" __XSTRING(__ELF_WORD_SIZE) "_loadfile: can't load module before kernel\n");
186 printf("elf" __XSTRING(__ELF_WORD_SIZE) "_loadfile: can't load module with kernel type '%s'\n", kfp->f_type);
191 ef.kernel = 0;
212 if (ef.kernel)
215 fp->f_type = strdup(ef.kernel ? __elfN(kerneltype) : __elfN(moduletype));
218 if (ef.kernel)
287 * On the purely virtual memory machines like e500, the kernel is
289 * available at the loader stage, but only after kernel initializes
298 * that the Book-E kernel assumes that it's loaded at a 16MB
313 * offset will leave us with the virtual address the kernel was linked
318 * launch the kernel by just jumping to that address.
331 if (ef->kernel)
577 if (ef->kernel) /* kernel must not depend on anything */
703 if (ef->kernel) /* kernel must not depend on anything */
808 * The kernel is already relocated, but we still want to apply
811 if (ef->kernel)