mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- Merge 26992, 27646, 27679, 27966, 28258.
- WinLdr now is up-to-date with trunk (28288). svn path=/branches/winldr/; revision=28289
This commit is contained in:
+12
-4
@@ -184,8 +184,8 @@ DetectPciIrqRoutingTable(FRLDRHKEY BusKey)
|
||||
}
|
||||
|
||||
/* Set 'Configuration Data' value */
|
||||
Size = sizeof(CM_FULL_RESOURCE_DESCRIPTOR) +
|
||||
Table->Size;
|
||||
Size = FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR, PartialResourceList.PartialDescriptors) +
|
||||
2 * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR) + Table->Size;
|
||||
FullResourceDescriptor = MmAllocateMemory(Size);
|
||||
if (FullResourceDescriptor == NULL)
|
||||
{
|
||||
@@ -198,14 +198,22 @@ DetectPciIrqRoutingTable(FRLDRHKEY BusKey)
|
||||
memset(FullResourceDescriptor, 0, Size);
|
||||
FullResourceDescriptor->InterfaceType = Isa;
|
||||
FullResourceDescriptor->BusNumber = 0;
|
||||
FullResourceDescriptor->PartialResourceList.Count = 1;
|
||||
FullResourceDescriptor->PartialResourceList.Version = 1;
|
||||
FullResourceDescriptor->PartialResourceList.Revision = 1;
|
||||
FullResourceDescriptor->PartialResourceList.Count = 2;
|
||||
|
||||
PartialDescriptor = &FullResourceDescriptor->PartialResourceList.PartialDescriptors[0];
|
||||
PartialDescriptor->Type = CmResourceTypeBusNumber;
|
||||
PartialDescriptor->ShareDisposition = CmResourceShareDeviceExclusive;
|
||||
PartialDescriptor->u.BusNumber.Start = 0;
|
||||
PartialDescriptor->u.BusNumber.Length = 1;
|
||||
|
||||
PartialDescriptor = &FullResourceDescriptor->PartialResourceList.PartialDescriptors[1];
|
||||
PartialDescriptor->Type = CmResourceTypeDeviceSpecific;
|
||||
PartialDescriptor->ShareDisposition = CmResourceShareUndetermined;
|
||||
PartialDescriptor->u.DeviceSpecificData.DataSize = Table->Size;
|
||||
|
||||
memcpy((PVOID)((ULONG_PTR)FullResourceDescriptor + sizeof(CM_FULL_RESOURCE_DESCRIPTOR)),
|
||||
memcpy(&FullResourceDescriptor->PartialResourceList.PartialDescriptors[2],
|
||||
Table,
|
||||
Table->Size);
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ extern BOOLEAN UiCenterMenu;
|
||||
extern BOOLEAN UiMenuBox;
|
||||
extern BOOLEAN UiMinimal;
|
||||
extern CHAR UiTimeText[];
|
||||
extern BOOLEAN UiDrawTime;
|
||||
|
||||
extern const CHAR UiMonthNames[12][15];
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
|
||||
static PVOID
|
||||
NTAPI
|
||||
CmpAllocate (ULONG Size, BOOLEAN Paged)
|
||||
CmpAllocate (SIZE_T Size, BOOLEAN Paged)
|
||||
{
|
||||
return MmAllocateMemory(Size);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <freeldr.h>
|
||||
|
||||
PVOID TextVideoBuffer = NULL;
|
||||
extern BOOLEAN UiDrawTime;
|
||||
extern BOOLEAN UiMinimal;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user