Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/loader/main.c
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | heap_bottom = (void *)end; | ||||
/* | /* | ||||
* XXX Chicken-and-egg problem; we want to have console output early, but some | * XXX Chicken-and-egg problem; we want to have console output early, but some | ||||
* console attributes may depend on reading from eg. the boot device, which we | * console attributes may depend on reading from eg. the boot device, which we | ||||
* can't do yet. | * can't do yet. | ||||
* | * | ||||
* We can use printf() etc. once this is done. | * We can use printf() etc. once this is done. | ||||
* If the previous boot stage has requested a serial console, prefer that. | * If the previous boot stage has requested a serial console, prefer that. | ||||
*/ | */ | ||||
initial_howto |= RB_SERIAL; /* JUNOS */ | |||||
bi_setboothowto(initial_howto); | bi_setboothowto(initial_howto); | ||||
if (initial_howto & RB_MULTIPLE) { | if (initial_howto & RB_MULTIPLE) { | ||||
if (initial_howto & RB_SERIAL) | if (initial_howto & RB_SERIAL) | ||||
setenv("console", "comconsole vidconsole", 1); | setenv("console", "comconsole vidconsole", 1); | ||||
else | else | ||||
setenv("console", "vidconsole comconsole", 1); | setenv("console", "vidconsole comconsole", 1); | ||||
} else if (initial_howto & RB_SERIAL) | } else if (initial_howto & RB_SERIAL) | ||||
setenv("console", "comconsole", 1); | setenv("console", "comconsole", 1); | ||||
Show All 22 Lines | else if (kargs->bootflags & KARGS_FLAGS_CD) | ||||
archsw.arch_autoload = i386_autoload; | archsw.arch_autoload = i386_autoload; | ||||
archsw.arch_getdev = i386_getdev; | archsw.arch_getdev = i386_getdev; | ||||
archsw.arch_copyin = i386_copyin; | archsw.arch_copyin = i386_copyin; | ||||
archsw.arch_copyout = i386_copyout; | archsw.arch_copyout = i386_copyout; | ||||
archsw.arch_readin = i386_readin; | archsw.arch_readin = i386_readin; | ||||
archsw.arch_isainb = isa_inb; | archsw.arch_isainb = isa_inb; | ||||
archsw.arch_isaoutb = isa_outb; | archsw.arch_isaoutb = isa_outb; | ||||
archsw.arch_hypervisor = i386_hypervisor; | |||||
#ifdef LOADER_ZFS_SUPPORT | #ifdef LOADER_ZFS_SUPPORT | ||||
archsw.arch_zfs_probe = i386_zfs_probe; | archsw.arch_zfs_probe = i386_zfs_probe; | ||||
#ifdef LOADER_GELI_SUPPORT | #ifdef LOADER_GELI_SUPPORT | ||||
if ((kargs->bootflags & KARGS_FLAGS_EXTARG) != 0) { | if ((kargs->bootflags & KARGS_FLAGS_EXTARG) != 0) { | ||||
zargs = (struct zfs_boot_args *)(kargs + 1); | zargs = (struct zfs_boot_args *)(kargs + 1); | ||||
if (zargs != NULL && zargs->size >= offsetof(struct zfs_boot_args, gelipw)) { | if (zargs != NULL && zargs->size >= offsetof(struct zfs_boot_args, gelipw)) { | ||||
if (zargs->size >= offsetof(struct zfs_boot_args, keybuf_sentinel) && | if (zargs->size >= offsetof(struct zfs_boot_args, keybuf_sentinel) && | ||||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |