6b15efd961
Use bd_getdev() to work out a dev_t for the root device. Allow $rootdev to override $currdev as the root device. biosdisk.c Save the slice table and disklabel when opening a disk. Add bd_getdev(), which attempts to return a dev_t corresponding to a given device. Cases which it still doesn't get right: - The inevitable da-when-wd-also-exists - Disks with no slice table (the slice number is not set correctly) The first is difficult to get right, the second will be fixed in an upcoming commit. comconsole.c vidconsole.c getchar() should return an 8-bit value; some BIOSsen pack extra information in %eax. libi386.h Remove some stale prototypes, add new ones. |
||
---|---|---|
.. | ||
aout_freebsd.c | ||
biosdisk.c | ||
biosmem.c | ||
bootinfo32.c | ||
bootinfo64.c | ||
bootinfo.c | ||
comconsole.c | ||
devicename.c | ||
elf32_freebsd.c | ||
elf64_freebsd.c | ||
elf_freebsd.c | ||
gatea20.c | ||
i386_copy.c | ||
i386_module.c | ||
libi386.h | ||
Makefile | ||
pread.c | ||
time.c | ||
vidconsole.c |