Author: hbelusca
Date: Wed Jan 28 23:23:48 2015
New Revision: 66106
URL:
http://svn.reactos.org/svn/reactos?rev=66106&view=rev
Log:
[FREELDR]: Reset FrldrBootDrive before chainloading in some cases (when the boot drive is
going to change), because ChainLoadBiosBootSectorCode uses FrldrBootDrive for the boot
drive. An alternative would be to pass this boot drive as a parameter to
ChainLoadBiosBootSectorCode... Fixes FreeLdr booting to another drive.
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/i386/miscboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/miscboot.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/miscboot.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/miscboot.c [iso-8859-1] Wed Jan 28
23:23:48 2015
@@ -154,6 +154,7 @@
// result in a read error.
//DiskStopFloppyMotor();
//DisableA20();
+ FrldrBootDrive = DriveNumber;
ChainLoadBiosBootSectorCode();
}
@@ -211,5 +212,6 @@
// result in a read error.
//DiskStopFloppyMotor();
//DisableA20();
+ FrldrBootDrive = DriveNumber;
ChainLoadBiosBootSectorCode();
}