diff options
author | nyan <nyan@FreeBSD.org> | 2012-09-23 08:46:44 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2012-09-23 08:46:44 +0000 |
commit | 5d3f47ad173829fb280ee088eadbe5cf909ee0cb (patch) | |
tree | 1463c7e70bb76c722b653263bd2597b5671a1b21 | |
parent | 0782e3abd8c51e9285dde77e69b6d7b41542cc97 (diff) | |
download | FreeBSD-src-5d3f47ad173829fb280ee088eadbe5cf909ee0cb.zip FreeBSD-src-5d3f47ad173829fb280ee088eadbe5cf909ee0cb.tar.gz |
Cosmetic changes.
-rw-r--r-- | sys/boot/pc98/loader/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c index 27a8c97..a89e33d 100644 --- a/sys/boot/pc98/loader/main.c +++ b/sys/boot/pc98/loader/main.c @@ -207,9 +207,9 @@ main(void) static void extract_currdev(void) { - struct i386_devdesc new_currdev; - int major; - int biosdev = -1; + struct i386_devdesc new_currdev; + int major; + int biosdev = -1; /* Assume we are booting from a BIOS disk by default */ new_currdev.d_dev = &biosdisk; @@ -255,7 +255,7 @@ extract_currdev(void) } } new_currdev.d_type = new_currdev.d_dev->dv_type; - + /* * If we are booting off of a BIOS disk and we didn't succeed in determining * which one we booted off of, just use disk0: as a reasonable default. @@ -266,6 +266,7 @@ extract_currdev(void) "Guessed BIOS device 0x%x not found by probes, defaulting to disk0:\n", biosdev); new_currdev.d_unit = 0; } + env_setenv("currdev", EV_VOLATILE, i386_fmtdev(&new_currdev), i386_setcurrdev, env_nounset); env_setenv("loaddev", EV_VOLATILE, i386_fmtdev(&new_currdev), env_noset, @@ -307,7 +308,7 @@ command_heap(int argc, char *argv[]) } /* ISA bus access functions for PnP, derived from <machine/cpufunc.h> */ -static int +static int isa_inb(int port) { u_char data; @@ -335,4 +336,3 @@ isa_outb(int port, int value) __asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port)); } } - |