Lines Matching refs:kernel
74 * this list is used in sequence, to find a kernel.
119 bootoptions(const char *ap, char *loaddev, char *kernel, char *options)
126 *kernel = '\0';
169 memcpy(kernel, start1, (end1 - start1));
170 kernel[end1 - start1] = '\0';
171 path = filename(kernel, &partition);
173 strcpy(loaddev, kernel);
174 kernel[0] = '\0';
175 } else if (path != kernel) {
177 memcpy(loaddev, kernel, path-kernel);
178 loaddev[path-kernel] = '\0';
185 /* and kernel path */
186 strcpy(kernel, path);
191 memcpy(kernel, start2, (end2 - start2));
192 kernel[end2 - start2] = '\0';
218 DPRINTF(("bootoptions: device='%s', kernel='%s', options='%s'\n",
219 loaddev, kernel, options));
252 * Prepare boot information and jump directly to the kernel.
255 jump_to_kernel(u_long *marks, char *kernel, char *args, void *ofw,
268 /* Compose kernel boot line. */
269 strncpy(bootline, kernel, sizeof(bootline));
330 * Tell the kernel we're an OpenFirmware system.
351 * Jump directly to the kernel. Solaris kernel and Sun PROM
362 printf("Returned from kernel entry point!\n");
366 start_kernel(char *kernel, char *bootline, void *ofw, int isfloppy,
377 * First, load headers using default allocator and check whether kernel
378 * entry address matches kernel text load address. If yes, this is the
379 * old kernel designed for ofwboot v1.8 and therefore it must be mapped
380 * by PROM. Otherwise, map the kernel with 4MB permanent pages.
383 if ( (fd = loadfile(kernel, marks, LOAD_HDR|COUNT_TEXT)) != -1) {
390 (void)printf("Loading %s: ", kernel);
394 jump_to_kernel(marks, kernel, bootline, ofw, boothowto);
397 (void)printf("Failed to load '%s'.\n", kernel);
411 " [device] [kernel] [options]\n"
450 char kernel[PROM_MAX_PATH];
462 bootoptions(prom_getbootargs(), bootdev, kernel, bootline);
465 for (;; *kernel = '\0') {
481 boothowto = bootoptions(cmdline, bootdev, kernel,
487 if (*kernel == '\0') {
492 strncpy(kernel, kernelnames[i++], PROM_MAX_PATH);
502 start_kernel(kernel, bootline, ofw, isfloppy, kboothowto);
505 * Try next name from kernel name list if not in askname mode,