mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[FREELDR]
Disable DriveMapMapDrivesInSection on MSVC builds, freeldr works basically without it svn path=/trunk/; revision=52322
This commit is contained in:
parent
2f6b794fc4
commit
d017f0fe2b
4 changed files with 5 additions and 14 deletions
|
@ -25,6 +25,7 @@ ULONG OldInt13HandlerAddress = 0; // Address of BIOS int 13h handler
|
|||
ULONG DriveMapHandlerAddress = 0; // Linear address of our drive map handler
|
||||
ULONG DriveMapHandlerSegOff = 0; // Segment:offset style address of our drive map handler
|
||||
|
||||
#ifndef _MSC_VER
|
||||
VOID DriveMapMapDrivesInSection(PCSTR SectionName)
|
||||
{
|
||||
CHAR SettingName[80];
|
||||
|
@ -141,6 +142,7 @@ BOOLEAN DriveMapIsValidDriveString(PCSTR DriveString)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
ULONG DriveMapGetBiosDriveNumber(PCSTR DeviceName)
|
||||
{
|
||||
|
@ -167,6 +169,7 @@ ULONG DriveMapGetBiosDriveNumber(PCSTR DeviceName)
|
|||
return BiosDriveNumber;
|
||||
}
|
||||
|
||||
#ifndef _MSC_VER
|
||||
VOID DriveMapInstallInt13Handler(PDRIVE_MAP_LIST DriveMap)
|
||||
{
|
||||
ULONG* RealModeIVT = (ULONG*)0x00000000;
|
||||
|
@ -220,3 +223,4 @@ VOID DriveMapRemoveInt13Handler(VOID)
|
|||
DriveMapInstalled = FALSE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -139,4 +139,3 @@ Int13HandlerDriveNew4:
|
|||
|
||||
PUBLIC _DriveMapInt13HandlerEnd
|
||||
_DriveMapInt13HandlerEnd:
|
||||
.byte 0
|
||||
|
|
|
@ -26,16 +26,4 @@ _BootOldLinuxKernel:
|
|||
PUBLIC _BootNewLinuxKernel
|
||||
_BootNewLinuxKernel:
|
||||
|
||||
PUBLIC _DriveMapOldInt13HandlerAddress
|
||||
_DriveMapOldInt13HandlerAddress:
|
||||
|
||||
PUBLIC _DriveMapInt13HandlerStart
|
||||
_DriveMapInt13HandlerStart:
|
||||
|
||||
PUBLIC _DriveMapInt13HandlerEnd
|
||||
_DriveMapInt13HandlerEnd:
|
||||
|
||||
PUBLIC _DriveMapInt13HandlerMapList
|
||||
_DriveMapInt13HandlerMapList:
|
||||
|
||||
END
|
||||
|
|
|
@ -228,7 +228,7 @@ VOID RunLoader(VOID)
|
|||
|
||||
#ifndef _M_ARM
|
||||
// Install the drive mapper according to this sections drive mappings
|
||||
#ifdef __i386__
|
||||
#if defined(__i386__) && !defined(_MSC_VER)
|
||||
DriveMapMapDrivesInSection(SectionName);
|
||||
#endif
|
||||
if (_stricmp(BootType, "ReactOS") == 0)
|
||||
|
|
Loading…
Reference in a new issue