diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-08-21 18:59:06 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-08-21 18:59:06 +0000 |
commit | e526efe96ccf3f1a65d9c59f36fb42981802d89d (patch) | |
tree | 8e82d8aba022a3e8f6e0bba15993f606358ff2ef | |
parent | e579b7c94e00f999a6364dd52676cea81b823e97 (diff) |
Get the boot device correctly if scsi id != 0 on 1[67]x boards.
-rw-r--r-- | sys/arch/mvme68k/mvme68k/disksubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c index aab8437415c..c3f74d139b4 100644 --- a/sys/arch/mvme68k/mvme68k/disksubr.c +++ b/sys/arch/mvme68k/mvme68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.25 2002/04/27 23:21:05 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.26 2002/08/21 18:59:05 miod Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -88,8 +88,8 @@ dk_establish(dk, dev) } else #endif { - target = bootdevlun / 10; - lun = bootdevlun % 10; + target = bootdevlun >> 4; + lun = bootdevlun & 0x0f; } if (sbsc->sc_link[target][lun] != NULL && |