BCVs should inherrit the legacy harddrive priority.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jan 2012 16:58:14 +0000 (11:58 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jan 2012 17:59:34 +0000 (12:59 -0500)
A BCV will (almost assuredly) be a hard drive, so it makes sense to
prioritize them the same as builtin hard drives when only the legacy
priority system is used.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/boot.c

index 93928d38dd5ff3df57d100b5e57e08cb0621992f..e26dad1ea54e7777e2f5d4f8249fb74dc3a2e8a3 100644 (file)
@@ -326,7 +326,7 @@ boot_add_bev(u16 seg, u16 bev, u16 desc, int prio)
 void
 boot_add_bcv(u16 seg, u16 ip, u16 desc, int prio)
 {
-    bootentry_add(IPL_TYPE_BCV, defPrio(prio, DEFAULT_PRIO)
+    bootentry_add(IPL_TYPE_BCV, defPrio(prio, DefaultHDPrio)
                   , SEGOFF(seg, ip).segoff
                   , desc ? MAKE_FLATPTR(seg, desc) : "Legacy option rom");
 }