Lines Matching defs:kernel

38 #define	HYPER_KERNEL_DIR 		"/platform/i86xpv/kernel"
39 #define METAL_KERNEL_DIR "/platform/i86pc/kernel"
360 * Convert "name=value" properties for use with a bare metal kernel
499 * Parse a hardware kernel's "kernel$" specifier into parameters we can then
505 * -1: error parsing kernel path
507 * 1: kernel already a hypervisor kernel
519 * If the metal kernel specified contains the name of the hypervisor,
560 * Parse a hypervisor's "kernel$" line into parameters that can be used to
561 * help build an appropriate "kernel$" line for booting a bare metal kernel.
566 cvt_hyper_kernel(char *kernel)
570 parsestr = get_token(&token, kernel, " \t,");
576 * If the hypervisor kernel specified lives in the metal kernel
582 "kernel!\n"));
589 /* check for kernel options */
605 * help build an appropriate "kernel$" line for booting a bare metal kernel.
643 /* check for kernel options */
769 char *kernel = NULL;
824 * passed as kernel start options such as the console device and serial
863 bam_error(_("kernel$ in default boot "
894 bam_error(_("kernel$ in default boot entry (%d) missing.\n"),
899 /* assemble new kernel and module arguments from parsed values */
925 kernel = alloca(len);
929 (void) snprintf(kernel, len, "%s%s %s", osroot,
934 (void) snprintf(kernel, len, "%s%s", osroot, XEN_MENU);
938 * Change the kernel directory from the metal version to that needed for
954 * We need to allocate space for the kernel path (twice) plus an
978 BAM_DPRINTF(("%s: converted kernel cmd to %s\n", fcn, kernel));
981 if ((newdef = add_boot_entry(mp, title, findroot, kernel, mod_kernel,
1028 char *kernel = NULL;
1122 bam_error(_("kernel$ in default boot entry (%d) missing.\n"),
1128 * Assemble new kernel and module arguments from parsed values.
1130 * First, change the kernel directory from the hypervisor version to
1131 * that needed for a metal kernel.
1137 /* allocate initial space for the kernel path */
1141 if ((kernel = malloc(len + zfslen)) == NULL) {
1148 (void) snprintf(kernel, len, "%s", kern_path);
1155 (void) strcat(kernel, zfsstr);
1175 newstr = append_str(kernel, BFLAG, " ");
1176 free(kernel);
1177 kernel = append_str(newstr, "console=", " ");
1179 newstr = append_str(kernel, console_dev, "");
1180 free(kernel);
1181 kernel = newstr;
1184 newstr = append_str(kernel, "console=", ",");
1185 free(kernel);
1186 kernel = append_str(newstr, console_dev, "");
1200 newstr = append_str(kernel, BFLAG, " ");
1201 free(kernel);
1202 kernel = newstr;
1209 newstr = append_str(kernel, "ttya-mode='", delim);
1210 free(kernel);
1218 kernel = append_str(newstr, "'", serial_config[0]);
1225 newstr = append_str(kernel, "ttyb-mode='", delim);
1226 free(kernel);
1234 kernel = append_str(newstr, "'", serial_config[1]);
1243 BAM_DPRINTF(("%s: converted kernel cmd to %s\n", fcn, kernel));
1246 if ((newdef = add_boot_entry(mp, title, findroot, kernel, NULL,
1248 free(kernel);
1262 free(kernel);
1274 "with a metal kernel.\nAborting.\n"), osroot);