diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2007-10-24 04:03:25 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2007-10-24 04:03:25 +0000 |
| commit | 5c5b5d4607930b36ed0338db31bc26bb7e1cb8ec (patch) | |
| tree | fdf38b4daaca0d3bae26f2cebbfb7bbbf5eb115e /sys/boot/i386/loader/main.c | |
| parent | 6fa30d2b87d01df6b1a00ff753be70bbf808169a (diff) | |
Notes
Diffstat (limited to 'sys/boot/i386/loader/main.c')
| -rw-r--r-- | sys/boot/i386/loader/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c index 0c0046ff4726..2083456bbbae 100644 --- a/sys/boot/i386/loader/main.c +++ b/sys/boot/i386/loader/main.c @@ -218,8 +218,7 @@ extract_currdev(void) new_currdev.d_kind.biosdisk.partition = 0; biosdev = -1; } else { - new_currdev.d_kind.biosdisk.slice = (B_ADAPTOR(initial_bootdev) << 4) + - B_CONTROLLER(initial_bootdev) - 1; + new_currdev.d_kind.biosdisk.slice = B_SLICE(initial_bootdev) - 1; new_currdev.d_kind.biosdisk.partition = B_PARTITION(initial_bootdev); biosdev = initial_bootinfo->bi_bios_dev; |
