:: commit d948b6e98ed1769f29e3060879b51474d7090237

mintsuki <mintsuki@protonmail.com> — 2021-12-23 19:51

parents: 245bea9ef3

chainload: Fix up drive number passed to spinup()

diff --git a/stage23/protos/chainload.c b/stage23/protos/chainload.c
index 5f89fd6d..4c38b8b1 100644
--- a/stage23/protos/chainload.c
+++ b/stage23/protos/chainload.c
@@ -104,7 +104,7 @@ void chainload(char *config) {
 
     volume_read(p, (void *)0x7c00, 0, 512);
 
-    spinup(drive);
+    spinup(p->drive);
 }
 
 #elif uefi == 1
tab: 248 wrap: offon